:root {
  color-scheme: light;
  --aknan-ink: #17213e;
  --aknan-night: #111a36;
  --aknan-indigo: #30377f;
  --aknan-blue: #0879a9;
  --aknan-sky: #36a9df;
  --aknan-gold: #e4bf20;
  --aknan-paper: #f5f6f7;
  --aknan-line: #e1e5ea;
  --aknan-muted: #526071;
  --aknan-shadow: 0 18px 48px rgba(21, 31, 59, 0.09);
  --aknan-hero-title-size: clamp(2.25rem, 3.75vw, 3rem);
  --aknan-hero-copy-size: calc(var(--aknan-hero-title-size) / 1.618);
  --aknan-section-title-size: clamp(1.75rem, 2.8vw, 2.25rem);
  --aknan-section-copy-size: calc(var(--aknan-section-title-size) / 1.618);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  background: var(--aknan-paper);
  color: #253044;
  -webkit-tap-highlight-color: rgba(48, 55, 127, 0.14);
}

body > .fixed.bg-grid-blueprint {
  opacity: 0.24;
}

.glow-sky,
.glow-amber {
  opacity: 0.45;
}

body > div[class~="bg-slate-100/90"] {
  background: var(--aknan-night) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e5e9f2 !important;
}

body > div[class~="bg-slate-100/90"] a,
body > div[class~="bg-slate-100/90"] span {
  color: inherit;
}

body > div[class~="bg-slate-100/90"] .text-slate-500,
body > div[class~="bg-slate-100/90"] .text-slate-600,
body > div[class~="bg-slate-100/90"] .text-slate-700 {
  color: #d5dcea !important;
}

body > div[class~="bg-slate-100/90"] .text-sky-600 {
  color: #75cff2 !important;
}

body > div[class~="bg-slate-100/90"] .text-amber-600 {
  color: #f4d252 !important;
}

header {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(20, 31, 58, 0.09) !important;
  box-shadow: 0 10px 28px rgba(17, 26, 54, 0.07) !important;
  margin-bottom: -6rem;
}

header:not(.is-scrolled) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

header:not(.is-scrolled) .group .text-slate-900 {
  color: #fff !important;
}

header:not(.is-scrolled) .group .text-slate-500 {
  color: rgba(255, 255, 255, 0.78) !important;
}

header:not(.is-scrolled) > div:first-child nav a {
  color: rgba(255, 255, 255, 0.92) !important;
}

header:not(.is-scrolled) > div:first-child nav a[aria-current="page"] {
  color: #fff !important;
  border-color: var(--aknan-gold) !important;
}

header:not(.is-scrolled) > div:first-child .bg-slate-100 {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(20, 31, 58, 0.14) !important;
  color: var(--aknan-ink) !important;
}

header:not(.is-scrolled) #mobileDrawer {
  background: #fff !important;
  border-color: var(--aknan-line) !important;
  box-shadow: 0 22px 44px rgba(17, 26, 54, 0.2) !important;
}

header:has(#mobileDrawer:not(.hidden)):not(.is-scrolled) {
  background: #fff !important;
  border-color: var(--aknan-line) !important;
  box-shadow: 0 10px 28px rgba(17, 26, 54, 0.07) !important;
  backdrop-filter: blur(16px) !important;
}

header:has(#mobileDrawer:not(.hidden)):not(.is-scrolled) .group .text-slate-900 {
  color: var(--aknan-ink) !important;
}

header:has(#mobileDrawer:not(.hidden)):not(.is-scrolled) .group .text-slate-500 {
  color: var(--aknan-muted) !important;
}

header:has(#mobileDrawer:not(.hidden)):not(.is-scrolled) > div:first-child .bg-slate-100 {
  background: #f1f5f9 !important;
  border-color: var(--aknan-line) !important;
  color: var(--aknan-ink) !important;
}

header nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding-inline: 0.25rem;
}

header #mobileMenuBtn,
header [class~="lg:hidden"] > a,
header [class~="hidden"][class~="lg:flex"] > a {
  min-height: 48px;
}

header #mobileMenuBtn {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

header [class~="lg:hidden"] > a {
  min-width: 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border-radius: 0.75rem !important;
}

header [class~="hidden"][class~="lg:flex"] > a {
  display: inline-flex;
  align-items: center;
}

header nav {
  gap: clamp(0.5rem, 1.2vw, 1.1rem) !important;
}

body a:focus-visible,
body button:focus-visible {
  outline: 3px solid var(--aknan-sky);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--aknan-indigo);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#page-title:focus {
  outline: 2px solid var(--aknan-sky);
  outline-offset: 6px;
}

header + section {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  margin-top: -6rem !important;
  min-height: clamp(30rem, 62vw, 43rem);
  padding-block: clamp(5rem, 8vw, 7.5rem) !important;
  overflow: hidden;
  background-color: var(--aknan-night) !important;
  border-color: transparent !important;
}

header + section > div:first-child > img {
  opacity: 0.78 !important;
  transform: scale(1.02) !important;
  filter: saturate(0.86) contrast(1.04);
}

header + section > div:first-child > div:nth-child(2) {
  background-image: linear-gradient(90deg, rgba(10, 19, 44, 0.9) 0%, rgba(13, 24, 53, 0.78) 48%, rgba(16, 27, 55, 0.4) 100%) !important;
}

html[dir="rtl"] header + section > div:first-child > div:nth-child(2) {
  background-image: linear-gradient(270deg, rgba(10, 19, 44, 0.9) 0%, rgba(13, 24, 53, 0.78) 48%, rgba(16, 27, 55, 0.4) 100%) !important;
}

header + section > div:first-child > .bg-grid-blueprint {
  opacity: 0.12 !important;
}

header + section > div.relative.z-10 {
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
  text-align: start !important;
}

header + section h1 {
  max-width: 58rem;
  margin-inline: 0;
  color: #fff !important;
  font-size: var(--aknan-hero-title-size) !important;
  font-weight: 600 !important;
  line-height: 1.12;
  text-wrap: balance;
}

h1#page-title,
h2:not(article h2),
h3:not(article h3) {
  font-weight: 600 !important;
}

h1#page-title {
  font-size: var(--aknan-hero-title-size) !important;
  text-wrap: balance;
}

h1#page-title + p,
section h2:not(article h2) + p {
  font-size: var(--aknan-section-copy-size) !important;
  line-height: 1.7;
}

header + section h1 span.brand-accent-text {
  color: #71c9ed !important;
  background-image: none !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #71c9ed !important;
}

.brand-accent-text {
  color: var(--aknan-blue) !important;
  background-image: none !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--aknan-blue) !important;
}

header + section.news-page-hero {
  min-height: clamp(24rem, 36vw, 31rem);
}

#newsArticlesGrid.news-article-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

#newsArticlesGrid.news-article-grid > article {
  flex: 1 1 22rem;
  min-width: 0;
  max-width: 24rem;
}

header + section > div.relative.z-10 p:not(.text-xs) {
  max-width: 48rem;
  color: rgba(242, 245, 250, 0.88) !important;
  font-size: var(--aknan-hero-copy-size) !important;
  line-height: 1.8;
}

section h2:not(article h2) {
  font-size: var(--aknan-section-title-size) !important;
  line-height: 1.2;
  text-wrap: balance;
}

header + section a[class~="bg-sky-600"] {
  background: var(--aknan-indigo) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(6, 10, 32, 0.22) !important;
}

header + section a[class~="bg-sky-600"]:hover {
  background: #252d6d !important;
  transform: translateY(-2px);
}

header + section a[class~="bg-white"] {
  border-color: rgba(255, 255, 255, 0.46) !important;
}

header + section > div.relative.z-10 > div.flex:has(> a[class~="bg-sky-600"]) {
  justify-content: flex-start !important;
}

.bg-sky-600 {
  background-color: var(--aknan-indigo) !important;
}

.hover\:bg-sky-700:hover {
  background-color: #252d6d !important;
}

.text-sky-600,
.text-sky-700 {
  color: #126b98 !important;
}

.border-sky-200,
.border-sky-300 {
  border-color: #b9dce9 !important;
}

.bg-sky-50 {
  background-color: #edf7fb !important;
}

.text-amber-600,
.text-amber-700,
.text-amber-800 {
  color: #876e00 !important;
}

.bg-amber-50 {
  background-color: #fff9dc !important;
}

.bg-amber-100 {
  background-color: #fff1b8 !important;
}

.border-amber-200 {
  border-color: #f0df92 !important;
}

.group[class~="rounded-2xl"][class~="border"] {
  border-color: var(--aknan-line) !important;
  box-shadow: 0 8px 24px rgba(21, 31, 59, 0.045);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background-color 240ms ease;
}

.group[class~="rounded-2xl"][class~="border"]:hover {
  border-color: rgba(48, 55, 127, 0.24) !important;
  box-shadow: var(--aknan-shadow);
  transform: translateY(-3px);
}

.group img {
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 240ms ease;
}

.light-card {
  border-color: var(--aknan-line);
  box-shadow: 0 8px 24px rgba(21, 31, 59, 0.045);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.light-card:hover {
  border-color: rgba(48, 55, 127, 0.24);
  box-shadow: var(--aknan-shadow);
  transform: translateY(-3px);
}

#services .service-image-card {
  position: relative;
  min-height: 20rem;
  padding: 0 !important;
  border-radius: 1.5rem;
}

#services .service-image-card > div:first-child {
  position: relative;
  height: 16rem !important;
  margin: 0 !important;
  flex: none;
  overflow: hidden;
  isolation: isolate;
}

#services .service-image-card > div:first-child::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 18, 35, 0.88) 0%, rgba(12, 18, 35, 0.2) 64%, transparent 100%);
  content: "";
  pointer-events: none;
}

#services .service-image-card > div:first-child img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#services .service-image-card > div:nth-child(2) {
  position: absolute;
  inset-inline: 1.5rem;
  bottom: 4rem;
  z-index: 2;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

#services .service-image-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0 !important;
  color: #fff !important;
  font-size: 1.4rem;
  font-weight: 600 !important;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

#services .service-image-card p,
#services .service-image-card > div:last-child > span {
  display: none !important;
}

#services .service-image-card > div:last-child {
  margin: auto 1.5rem 1.25rem;
  padding-top: 1rem;
}

#services .service-image-card > div:first-child img { transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1); }
#services .service-image-card:hover > div:first-child img { transform: scale(1.04); }

.service-feature-card {
  min-height: 24rem;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
}

.service-feature-layout {
  display: grid;
  min-height: 24rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}

.service-feature-media {
  min-height: 24rem;
  overflow: hidden;
  background: #dce3e8;
}

.service-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2, .7, .2, 1);
}

.service-feature-card:hover .service-feature-media img { transform: scale(1.025); }

.service-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.service-feature-copy h3 {
  --service-feature-title-size: clamp(1.65rem, 2.6vw, 2.2rem);
  margin: 0 0 1rem;
  color: var(--aknan-ink);
  font-size: var(--service-feature-title-size);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.service-feature-copy p {
  max-width: 38rem;
  margin: 0;
  color: var(--aknan-muted);
  font-size: calc(var(--service-feature-title-size) / 1.618);
  line-height: 1.618;
}

.service-feature-points {
  display: grid;
  gap: .7rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  color: var(--aknan-ink);
  list-style: none;
}

.service-feature-points li { display: flex; align-items: flex-start; gap: .65rem; line-height: 1.5; }
.service-feature-points i { margin-top: .25rem; color: var(--aknan-blue); }
.service-feature-link { display: inline-flex; min-height: 48px; align-items: center; gap: .6rem; color: var(--aknan-indigo); font-weight: 700; text-decoration: none; }
.service-feature-link:hover { color: var(--aknan-blue); }

#newsArticlesGrid > article,
#homeNewsGrid > article,
.managed-news-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid var(--aknan-line);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 31, 59, .045);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

#newsArticlesGrid > article:hover,
#homeNewsGrid > article:hover,
.managed-news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(48, 55, 127, .24);
  box-shadow: var(--aknan-shadow);
}

#newsArticlesGrid > article > div:first-child,
#homeNewsGrid > article > div:first-child { display: flex; flex: 1; flex-direction: column; }

#newsArticlesGrid > article > div:first-child > div:first-child,
#homeNewsGrid > article > div:first-child > div:first-child,
.managed-news-image {
  position: relative;
  height: 14rem !important;
  flex: none;
  overflow: hidden;
  background: #e9edf1;
}

#newsArticlesGrid > article img,
#homeNewsGrid > article img,
.managed-news-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

#newsArticlesGrid > article .bg-gradient-to-t,
#homeNewsGrid > article .bg-gradient-to-t { display: none; }

#newsArticlesGrid > article > div:first-child > div:nth-child(2),
#homeNewsGrid > article > div:first-child > div:nth-child(2),
.managed-news-copy { flex: 1; padding: 1.35rem 1.45rem; }

#newsArticlesGrid > article time,
#newsArticlesGrid > article .font-mono,
#homeNewsGrid > article time,
#homeNewsGrid > article .font-mono,
.managed-news-date {
  display: block;
  margin: 0 0 .55rem;
  color: #826900;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
}

#newsArticlesGrid > article h3,
#homeNewsGrid > article h3,
.managed-news-title {
  --news-title-size: clamp(1.3rem, 1.6vw, 1.5rem);
  display: -webkit-box;
  min-height: 3.9rem;
  overflow: hidden;
  margin: 0 0 .65rem;
  color: var(--aknan-ink);
  font-size: var(--news-title-size);
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-wrap: balance;
}

#newsArticlesGrid > article p,
#homeNewsGrid > article p,
.managed-news-excerpt {
  display: -webkit-box;
  min-height: 4.85rem;
  overflow: hidden;
  margin: 0;
  color: var(--aknan-muted);
  font-size: calc(var(--news-title-size) / 1.618);
  line-height: 1.7;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#newsArticlesGrid > article > div:last-child,
#homeNewsGrid > article > div:last-child,
.managed-news-footer {
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: auto;
  padding: .65rem 1.45rem;
  border-top: 1px solid #edf0f3;
}

#newsArticlesGrid > article > div:last-child > button,
#newsArticlesGrid > article > div:last-child > a,
#homeNewsGrid > article > div:last-child > a,
.managed-news-footer a,
.managed-news-footer button { font-size: .95rem; font-family: inherit; font-weight: 600; }

#newsArticlesGrid > article > div:last-child > span,
#homeNewsGrid > article > div:last-child > span { display: none; }

html[dir="rtl"] #newsArticlesGrid > article > div:last-child,
html[dir="rtl"] #homeNewsGrid > article > div:last-child,
html[dir="rtl"] .managed-news-footer { justify-content: flex-start; }

section[id],
h2[id],
h3[id] {
  scroll-margin-top: 7rem;
}

#mobileDrawer {
  box-shadow: 0 22px 44px rgba(17, 26, 54, 0.16);
}

.mobile-nav-link {
  min-height: 48px;
  display: flex;
  align-items: center;
}

body:has(#mobileDrawer:not(.hidden)) > a[class~="fixed"] {
  display: none !important;
}

footer {
  background-color: var(--aknan-night) !important;
}

@media (max-width: 640px) {
  header + section {
    min-height: 32rem;
    padding-block: 5rem !important;
  }

  header + section.news-page-hero {
    min-height: 24rem;
  }

  #hero {
    min-height: min(48rem, 88svh);
  }

  #hero h1 > span {
    display: block;
  }

  html[dir="rtl"] #hero > div:first-child > img {
    object-position: 74% center !important;
  }

  header + section > div:first-child > img {
    opacity: 0.64 !important;
  }

  header + section > div:first-child > div:nth-child(2) {
    background-image: linear-gradient(0deg, rgba(10, 19, 44, 0.96) 0%, rgba(13, 24, 53, 0.78) 55%, rgba(16, 27, 55, 0.48) 100%) !important;
  }

  html[dir="rtl"] header + section > div:first-child > div:nth-child(2) {
    background-image: linear-gradient(0deg, rgba(10, 19, 44, 0.96) 0%, rgba(13, 24, 53, 0.78) 55%, rgba(16, 27, 55, 0.48) 100%) !important;
  }

  header + section h1 {
    font-size: var(--aknan-hero-title-size) !important;
  }

  header + section > div.relative.z-10 p:not(.text-xs) {
    font-size: var(--aknan-hero-copy-size) !important;
  }

  #services .service-image-card > div:first-child {
    height: 15rem !important;
  }

  #services .service-image-card > div:nth-child(2) {
    bottom: 5rem;
  }

  #services .service-image-card h3 {
    font-size: 1.2rem;
  }

  .service-feature-layout { grid-template-columns: minmax(0, 1fr); }
  .service-feature-media, .service-feature-media img { min-height: 15rem; height: 15rem; }
  .service-feature-copy { padding: 1.5rem; }
  .service-feature-copy h3 { --service-feature-title-size: 1.65rem; }
  #newsArticlesGrid > article h3,
  #homeNewsGrid > article h3,
  .managed-news-title { --news-title-size: 1.3rem; }
  #newsArticlesGrid > article > div:first-child > div:first-child,
  #homeNewsGrid > article > div:first-child > div:first-child,
  .managed-news-image { height: 13rem !important; }

  body > div[class~="bg-slate-100/90"] {
    display: none;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  header .hidden[class~="sm:flex"] {
    display: none !important;
  }
}

@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;
  }
}
[data-image-frame-hidden="true"] { display: none !important; }
