@font-face {
  font-family: "Noto Sinhala";
  src: url("/assets/noto-sinhala.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0D80-0DFF;
}
@font-face {
  font-family: "Noto Tamil";
  src: url("/assets/noto-tamil.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0B80-0BFF;
}
@font-face {
  font-family: "Noto Devanagari";
  src: url("/assets/noto-devanagari.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0900-097F;
}
:root {
  --regional: Inter, "Noto Sinhala", "Noto Tamil", "Noto Devanagari", Arial, sans-serif;
}
body,
.language-picker select {
  font-family: var(--regional);
}
html:is([lang="si"], [lang="ta"], [lang="hi"]) {
  --head: Barlow, "Noto Sinhala", "Noto Tamil", "Noto Devanagari", sans-serif;
}
html:is([lang="si"], [lang="ta"], [lang="hi"]) :is(h1, h2, h3, .eyebrow, .meta) {
  line-height: 1.4;
  letter-spacing: normal;
}
html:is([lang="si"], [lang="ta"], [lang="hi"]) .hero h1 {
  font-size: clamp(2.3rem, 4.7vw, 5.2rem);
  line-height: 1.45;
}
html:is([lang="si"], [lang="ta"], [lang="hi"]) .mast nav {
  gap: clamp(10px, 1.4vw, 26px);
}
.official-brand {
  display: inline-flex;
  width: 96px;
  height: 72px;
  align-items: center;
  justify-content: center;
  flex: none;
}
.official-brand img {
  width: 92px;
  height: 78px;
  object-fit: contain;
}
footer .official-brand,
[data-theme="dark"] .official-brand {
  background: #fff;
  border-radius: 5px;
}
.language-picker {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  border-inline-start: 1px solid #68767b;
  padding-inline-start: 14px;
}
.language-picker > span {
  color: #ffcd6d;
  font-size: 18px;
  line-height: 1;
}
.language-picker select {
  width: auto;
  max-width: 115px;
  min-height: 30px;
  padding: 2px 18px 2px 4px;
  border: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #f5f5f3;
  background-color: transparent;
  background-position: right 2px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='10' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='white' fill='none'/%3E%3C/svg%3E");
}
.language-picker option {
  background: #17272e;
  color: white;
}
.team-grid {
  --lead-size: clamp(245px, 27vw, 345px);
  --col: clamp(180px, 20vw, 250px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, var(--col)));
  justify-content: center;
  text-align: center;
  column-gap: clamp(1rem, 4vw, 4rem);
  row-gap: 2.3rem;
}
.team-grid article:first-child {
  grid-column: 1/-1;
  width: var(--lead-size);
  justify-self: center;
}
.team-grid article img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  background: var(--mist);
}
.team-grid article:first-child img {
  border-bottom: 4px solid var(--gold);
}
.team-grid h3 {
  font-size: 1.35rem;
}
.team-grid article:first-child h3 {
  font-size: 1.65rem;
}
.team-grid p {
  font-size: 0.93rem;
}
.assistant-widget {
  position: fixed;
  z-index: 20;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  font-family: var(--regional);
}
.assistant-widget [hidden],
.assistant-widget[hidden] {
  display: none !important;
}
.assistant-launch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #49565a;
  border-radius: 30px;
  background: #172a32;
  color: #fff;
  box-shadow: 0 5px 20px #07181c38;
  padding: 4px 15px 4px 4px;
  font-weight: 600;
  font-size: 0.9rem;
}
.assistant-launch img,
.assistant-panel header img {
  width: 41px;
  height: 41px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ffd380;
}
.assistant-panel {
  display: flex;
  flex-direction: column;
  width: min(375px, calc(100vw - 30px));
  max-height: min(570px, calc(100dvh - 48px));
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 15px;
  box-shadow: 0 16px 60px #101f3350;
  overflow: hidden;
  animation: panel-in 0.22s ease-out;
}
.assistant-panel header {
  background: #182c35;
  color: white;
  padding: 13px;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.assistant-panel header strong,
.assistant-panel header small {
  display: block;
}
.assistant-panel header small {
  font-size: 0.78rem;
  color: #d6dfe0;
}
.assistant-dismiss {
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid #627279;
  background: transparent;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.assistant-log {
  padding: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  scrollbar-width: thin;
  background: var(--mist);
}
.chat-bubble {
  max-width: 96%;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 10px 12px;
  border-radius: 4px 14px 14px 14px;
  margin: 0.45rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  animation: panel-in 0.18s ease-out;
}
.chat-bubble p {
  color: var(--ink);
  white-space: pre-line;
}
.chat-bubble ul {
  padding-left: 1.2rem;
  margin: 0.65rem 0;
}
.chat-bubble a {
  display: inline-block;
  color: var(--ochre);
  text-decoration: underline;
  margin-top: 7px;
}
.chat-bubble.visitor {
  width: fit-content;
  margin-left: auto;
  background: var(--tile);
  border-radius: 14px 4px 14px 14px;
}
.assistant-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}
.assistant-choices button {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 5px 8px;
  text-align: left;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.assistant-choices button:hover {
  border-color: var(--ochre);
  background: var(--tile);
}
.assistant-form {
  display: flex;
  gap: 0.5rem;
  padding: 10px;
  border-top: 1px solid var(--rule);
}
.assistant-form button {
  background: var(--gold);
  color: #172a32;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  min-width: 43px;
}
.assistant-form input {
  font-weight: 400;
}
footer .footer-end {
  padding-bottom: 4.5rem;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-inner h1 {
    animation: panel-in 0.55s ease-out both;
  }
  .hero-actions {
    animation: panel-in 0.65s 0.05s ease-out both;
  }
  .project-card,
  .service-grid article,
  .assistant-launch {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }
  .project-card:hover,
  .service-grid article:hover,
  .assistant-launch:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 22px #15282f16;
  }
  .reveal-once {
    animation: panel-in 0.48s ease-out both;
  }
}
@media (max-width: 1000px) {
  html:not([lang="en-LK"]) .menu {
    display: grid;
  }
  html:not([lang="en-LK"]) .mast nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 1rem 4%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  html:not([lang="en-LK"]) .mast.expanded nav {
    display: grid;
    gap: 0.55rem;
  }
  html:not([lang="en-LK"]) .mast nav > a[aria-current]:after {
    display: none;
  }
}
@media (max-width: 700px) {
  .team-grid {
    --col: min(40vw, 190px);
    --lead-size: min(65vw, 265px);
    row-gap: 1.8rem;
  }
  .team-grid article {
    min-width: 0;
  }
  .team-grid h3 {
    font-size: 1.2rem;
  }
  .official-brand {
    width: 74px;
    height: 62px;
  }
  .official-brand img {
    width: 73px;
    height: 65px;
  }
  .language-picker {
    padding-inline-start: 6px;
  }
  .language-picker select {
    font-size: 0.75rem;
  }
  .utility-inner {
    gap: 2px;
  }
  .utility-inner > div {
    gap: 0.4rem;
  }
  .assistant-launch {
    padding: 3px;
  }
  .assistant-launch span {
    position: absolute;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .assistant-widget {
    right: 12px;
    bottom: 12px;
  }
  .assistant-panel {
    max-height: min(570px, calc(100dvh - 26px));
  }
}
@media (max-width: 440px) {
  .utility-inner > div > a[href^="tel"] {
    display: none;
  }
  .team-grid p {
    font-size: 0.85rem;
  }
}
main :is(h1, h2, h3, p, blockquote),
.team-grid article,
.intro-layout > div,
.contact-layout > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  html:is([lang="ta"], [lang="si"], [lang="hi"]) .inner-title h1 {
    font-size: clamp(2rem, 7.5vw, 2.85rem);
  }
  html:is([lang="ta"], [lang="si"], [lang="hi"]) main h2 {
    font-size: clamp(1.75rem, 6.7vw, 2.4rem);
  }
}
