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

@font-face {
  font-family: 'Barlow';
  src: url('fonts/barlow-500.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Barlow';
  src: url('fonts/barlow-600.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

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

@font-face {
  font-family: 'Open Sans';
  src: url('fonts/open-sans-400.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('fonts/open-sans-600.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

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

@font-face {
  font-family: 'Oswald';
  src: url('fonts/oswald-600.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

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

@font-face {
  font-family: 'Lora';
  src: url('fonts/lora-400-italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'entypo-fontello';
  src: url('fonts/entypo-fontello.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

:root {
  --accent: #45c0d6;
  --accent-green: #35e29a;
  --text: #444;
  --heading: #333;
  --surface-dark: #0e1318;
  --surface-dark-alt: #151d25;
  --surface-dark-soft: #1b2530;
  --text-light: rgba(244, 247, 250, 0.9);
  --text-light-muted: rgba(244, 247, 250, 0.68);
  --header-height: 88px;
  --container: min(1310px, 90vw);
  --section-gap: 110px;
  --shadow-soft: 0 18px 40px rgba(12, 18, 31, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: 'Barlow', 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface-dark);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--accent);
  color: #fff;
}

::-moz-selection {
  background-color: var(--accent);
  color: #fff;
}

a {
  color: inherit;
}

#header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 501;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

#header.scrolled {
  background: rgba(10, 14, 19, 0.78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.logo {
  position: relative;
  z-index: 3;
  text-decoration: none;
}

.logo-wordmark {
  display: inline-block;
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
}

.logo-script {
  font-family: 'Pacifico', cursive;
}

.logo-accent {
  display: inline-block;
  font-family: 'Open Sans', 'Helvetica', 'Helvetica Neue', sans-serif;
  font-size: 0.8em;
  font-weight: 600;
  margin: 0 0.18em;
  transform: translateY(-0.16em);
}

.main_menu {
  display: flex;
  align-items: center;
  height: 100%;
}

.av-main-nav {
  display: flex;
  list-style: none;
}

.av-main-nav > li > a {
  display: block;
  padding: 0 13px;
  height: var(--header-height);
  line-height: var(--header-height);
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: none;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

#header.scrolled .av-main-nav > li > a {
  color: rgba(244, 247, 250, 0.9);
}

.av-main-nav > li > a:hover,
#av-burger-overlay a:hover {
  color: var(--accent) !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

#header.scrolled .mobile-toggle span {
  background: rgba(244, 247, 250, 0.9);
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#av-burger-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 21, 32, 0.96);
  z-index: 499;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.75, 0, 0.25, 1);
}

#av-burger-overlay.open {
  display: flex;
  opacity: 1;
}

#av-burger-overlay a {
  color: #fff;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#av-burger-overlay.open a {
  opacity: 1;
  transform: translateY(0);
}

#herobg {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #0f1520 url('christina-deravedisian.jpg') center center / cover no-repeat;
}

#herobg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 32, 0.18);
  z-index: 0;
}

#tsparticles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-height) + 54px) 0 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tagline {
  width: min(920px, 86vw);
  text-align: center;
}

#tagline h3 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(3.4rem, 4.5vw, 5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.14;
  letter-spacing: 0.01em;
  margin-bottom: 0.9rem;
  text-transform: none;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

#tagline h3 > span {
  display: inline-block;
  vertical-align: baseline;
}

.tagline-script {
  font-family: 'Pacifico', cursive;
}

.tagline-accent {
  font-family: 'Open Sans', 'Helvetica', 'Helvetica Neue', sans-serif;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  margin: 0 0.18em;
  transform: translateY(-0.24em);
}

.tagline-divider {
  font-family: 'Open Sans', 'Helvetica', 'Helvetica Neue', sans-serif;
  font-size: 0.46em;
  font-weight: 600;
  margin: 0 0.14em;
  transform: translateY(-0.18em);
}

#tagline .av-subheading {
  max-width: 980px;
  margin: 0 auto;
  font-family: 'Open Sans', 'Helvetica', 'Helvetica Neue', sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.28rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-transform: none;
}

.special-heading-border {
  position: relative;
  overflow: hidden;
  height: 1.9em;
  width: min(620px, 62vw);
  margin: 18px auto 0;
}

.special-heading-inner-border {
  display: block;
  width: 100%;
  margin-left: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  top: 50%;
}

.scroll-down-link {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 80px;
  height: 70px;
  color: #5f5fc7;
  text-decoration: none;
  z-index: 10;
  animation: avia_fade_move_down 2s ease-in-out infinite;
}

.scroll-down-link::before {
  content: '\E877';
  display: block;
  font-family: 'entypo-fontello', sans-serif;
  font-size: 42px;
  line-height: 70px;
  text-align: center;
}

@keyframes avia_fade_move_down {
  0% {
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
}

.border-extra-diagonal {
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.border-extra-diagonal .av-extra-border-outer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.border-extra-diagonal .av-extra-border-inner {
  position: absolute;
  left: auto;
  right: -4%;
  bottom: -92px;
  width: 112%;
  height: 142px;
  background-color: #fff;
  transform: rotate(4.1deg);
  transform-origin: right bottom;
}

#whatwedo,
#services,
#aboutus {
  position: relative;
}

#whatwedo {
  background:
    radial-gradient(circle at top, rgba(69, 192, 214, 0.16), transparent 42%),
    linear-gradient(180deg, var(--surface-dark) 0%, #111922 100%);
  padding: 65px 40px 65px;
  text-align: center;
}

#whatwedo .section-heading,
#services h2,
#aboutus h3,
#contact h3 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: #f6f8fb;
  text-transform: none;
  line-height: 1.08;
}

#whatwedo .section-heading {
  font-size: 50px;
  letter-spacing: 0;
}

#whatwedo .section-subheading,
#contact .section-sub {
  font-size: 23px;
  color: var(--text-light-muted);
  margin-top: 8px;
}

.cards-table {
  display: table;
  table-layout: fixed;
  width: min(1180px, 100%);
  margin: 36px auto 0;
  border-spacing: 0;
}

.card-cell {
  display: table-cell;
  width: 30%;
  vertical-align: middle;
  background: rgba(21, 29, 37, 0.96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
  padding: 28px 28px 28px 48px;
  opacity: 0;
  animation: avia_image_appear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.card-cell:nth-child(1) {
  animation-delay: 0.1s;
}

.card-cell:nth-child(2) {
  animation-delay: 0.25s;
}

.card-cell:nth-child(3) {
  animation-delay: 0.4s;
}

.card-cell.featured {
  background: linear-gradient(135deg, #6760d5, #02a4e2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.18);
  transform: scale(1.1);
  z-index: 4;
  position: relative;
  width: 30%;
  animation: featured_appear 0.5s 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes avia_image_appear {
  0% {
    transform: scale(0.7);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes featured_appear {
  0% {
    transform: scale(0.63);
    opacity: 0.1;
  }

  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.card-cell h4 {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 400;
  color: #f6f8fb;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.card-cell.featured h4 {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.card-cell ul {
  list-style: none;
  text-align: center;
}

.card-cell ul li {
  font-size: 14px;
  color: var(--text-light);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-cell.featured ul li {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

#services {
  text-align: center;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #121212;
  /* background-image: url('hero-pattern.png'), linear-gradient(var(--surface-dark) 0%, #111922 100%); */
  background-repeat: no-repeat, no-repeat;
  background-position: center center;
  margin-top: 0;
}

#services h2 {
  font-size: 36px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 52px;
  display: none;
}

.icongrid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, 100%);
}

.icongrid li {
  perspective: 1000px;
  min-height: 244px;
}

.icongrid li article {
  position: relative;
  display: block;
  height: 100%;
  min-height: 244px;
}

.icongrid-front,
.icongrid-back {
  position: absolute;
  inset: 0;
  margin: 1px;
  /* border: 1px solid rgba(255, 255, 255, 0.16); */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s ease;
}

.icongrid-front {
  z-index: 2;
  transform: rotateY(0deg);
  /* background: rgba(255, 255, 255, 0.02); */
}

.icongrid-back {
  transform: rotateY(-180deg);
  background: transparent;
}

.icongrid li:hover .icongrid-front {
  transform: rotateY(180deg);
}

.icongrid li:hover .icongrid-back {
  transform: rotateY(0deg);
}

.icongrid-inner {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  padding: 2.1em 2em;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.icongrid-front .icongrid-inner {
  color: rgba(255, 255, 255, 0.64);
}

.icongrid-back .icongrid-inner {
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
}

.icongrid-icon {
  font-family: 'entypo-fontello', sans-serif;
  font-size: 64px;
  line-height: 1;
  color: #fff;
  margin-bottom: 18px;
  display: block;
  font-style: normal;
  font-weight: 400;
  speak: none;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.icongrid-title {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 6px;
}

.icongrid-subtitle {
  font-family: 'Barlow', 'Open Sans', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.49);
  margin-bottom: 8px;
  line-height: 1.45;
}

.icongrid-content {
  font-family: 'Barlow', 'Open Sans', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-weight: 600;
}

#aboutus {
  padding: 65px 40px 65px;
  background-color: var(--surface-dark-alt);
  background-image: url('hero-pattern.png'), linear-gradient(180deg, #151d25 0%, #0f151b 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: top center;
}

.about-heading {
  width: var(--container);
  margin: 0 auto 28px;
  text-align: center;
}

#aboutus h3 {
  font-size: 45px;
  margin: 0;
}

.about-heading .special-heading-border {
  width: min(610px, 62vw);
  margin-top: 10px;
}

.special-amp {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  line-height: 0;
}

.about-inner {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
}

.about-body {
  width: min(60%, 760px);
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
}

.about-body p {
  margin-bottom: 1.2em;
}

.about-body a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.about-body a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

#contact {
  margin-top: 0;
  background: linear-gradient(180deg, #10171e 0%, #0b1015 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-left {
  background:
    linear-gradient(rgba(7, 11, 16, 0.72), rgba(7, 11, 16, 0.72)),
    url('backdrop-bg.png') center center / cover no-repeat;
  padding: 240px 20px 220px;
  text-align: center;
}

.contact-left-icon {
  display: inline-block;
  margin-bottom: 18px;
  font-family: 'entypo-fontello', sans-serif;
  font-size: 40px;
  line-height: 1;
  color: rgba(244, 247, 250, 0.95);
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.contact-left p {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: var(--text-light);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 2.5;
}

.contact-right {
  padding: 60px 40px 12px;
  background: var(--surface-dark-soft);
}

#contact h3 {
  font-size: 45px;
}

.contact-right h3 {
  text-align: left;
  font-size: 32px;
  margin-bottom: 6px;
}

.contact-right .section-sub {
  font-size: 18px;
  margin-bottom: 28px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  color: #eef3f8;
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

form input::placeholder,
form textarea::placeholder {
  color: rgba(238, 243, 248, 0.52);
}

form input:focus,
form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

form textarea {
  min-height: 130px;
  resize: vertical;
}

form button[type='submit'] {
  align-self: flex-start;
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

form button[type='submit']:hover {
  background: #3eaaa3;
  transform: translateY(-1px);
}

.form-success {
  display: none;
  padding: 12px 16px;
  background: rgba(69, 192, 214, 0.16);
  border: 1px solid var(--accent);
  color: #9fe7f2;
  border-radius: 2px;
  font-size: 14px;
  margin-top: 4px;
}

.form-error {
  display: none;
  padding: 12px 16px;
  background: rgba(183, 57, 57, 0.15);
  border: 1px solid rgba(183, 57, 57, 0.35);
  color: #ffb4b4;
  border-radius: 2px;
  font-size: 14px;
  margin-top: 4px;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

#socket {
  background: #070a0d;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
  padding: 20px 40px;
  font-size: 13px;
}

#socket a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  margin-left: 16px;
  transition: color 0.2s ease;
}

#socket a:hover {
  color: rgba(255, 255, 255, 0.7);
}

#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 50;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top:hover {
  transform: translateY(-2px);
}

@media (max-width: 989px) {
  .hero-inner {
    width: calc(100vw - 80px);
    padding-bottom: 170px;
  }

  .cards-table {
    display: block;
  }

  .card-cell {
    display: block;
    width: 100%;
    transform: none !important;
    margin-bottom: 16px;
  }

  .card-cell.featured {
    width: 100%;
  }

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

  .about-inner {
    max-width: 100%;
  }

  .about-body {
    width: min(78%, 760px);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-left {
    display: none;
  }
}

@media (max-width: 767px) {
  :root {
    --section-gap: 72px;
  }

  .main_menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  #header {
    padding: 0 20px;
  }

  .logo-wordmark {
    font-size: 1.7rem;
  }

  .hero-inner {
    width: calc(100vw - 40px);
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 160px;
  }

  #tagline {
    width: min(100%, 420px);
  }

  #tagline h3 {
    font-size: clamp(3rem, 14vw, 4.5rem);   /* clamp(最小值, 首选值, 最大值); */
  }

  #tagline .av-subheading {
    font-size: 16px;
    letter-spacing: 0.03em;
  }

  .special-heading-border {
    width: 100%;
  }

  #whatwedo,
  #aboutus {
    padding: 46px 20px 45px;
  }

  .about-heading .special-heading-border {
    width: min(100%, 520px);
  }

  .about-body {
    width: 100%;
  }

  #services {
    padding: 70px 20px 76px;
  }

  .contact-right {
    padding: 40px 20px;
  }

  #whatwedo .section-heading {
    font-size: 12vw;
  }

  .icongrid {
    grid-template-columns: 1fr;
  }
}
