@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@500;600;700&family=Sora:wght@300;400;500;600;700&display=swap");

.kapbot-welcome {
  position: absolute;
  bottom: 152px;
  right: 0;
  left: auto;
  transform: none;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: #0c4d45;
  padding: 6px 16px 10px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 36px rgba(10, 30, 44, 0.2);
  z-index: 10;
  opacity: 0;
  animation: kapbotWelcomeFade 1.2s 0.3s forwards;
  max-width: 220px;
  min-width: 160px;
  white-space: pre-line;
  text-align: left;
  border: 1px solid rgba(15, 80, 72, 0.22);
  pointer-events: none;
}

.kapbot-welcome::after {
  content: "";
  position: absolute;
  right: 44px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: #f7fbff;
  border-right: 1px solid rgba(15, 80, 72, 0.22);
  border-bottom: 1px solid rgba(15, 80, 72, 0.22);
  transform: rotate(45deg);
}

@keyframes kapbotWelcomeFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes advisoryFade {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

:root {
  --sky-100: #f8f3ea;
  --sky-200: #f1e6d6;
  --sky-300: #e3f1ee;
  --sky-500: #63b6ac;
  --sky-700: #1d7a6e;
  --sky-800: #135f56;
  --sun-300: #fde2bc;
  --sun-500: #f6c27a;
  --coral-500: #ef7f6d;
  --ink: #0f2433;
  --muted: #4b6475;
  --white: #ffffff;
  --card: #ffffff;
  --border: rgba(15, 36, 51, 0.12);
  --shadow: 0 28px 60px rgba(10, 30, 44, 0.16);
  --radius: 20px;
  --max: 1120px;
  --header-height: 72px;
  --announce-offset: 52px;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(246, 194, 122, 0.35), transparent 55%),
    radial-gradient(circle at 86% -10%, rgba(99, 182, 172, 0.26), transparent 60%),
    linear-gradient(180deg, var(--sky-100) 0%, #ffffff 58%);
  line-height: 1.7;
}

main[id],
section[id] {
  scroll-margin-top: calc(var(--header-height) + 8px);
}

.debug-hit a,
.debug-hit button,
.debug-hit [role="button"] {
  outline: 2px dashed rgba(255, 215, 0, 0.9);
  outline-offset: 3px;
}

body * {
  cursor: default;
}

body {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body:not(.page-ready) :is(h1, h2, h3, h4, h5, h6, p, li, label, span, small, em, strong, a) {
  opacity: 0;
  transform: translateY(10px);
}

body.page-ready :is(h1, h2, h3, h4, h5, h6, p, li, label, span, small, em, strong, a) {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.08s;
}

body:not(.page-ready) .site-header,
body:not(.page-ready) main,
body:not(.page-ready) .site-footer {
  opacity: 0;
  transform: translateY(14px);
}

body.page-ready .site-header,
body.page-ready main,
body.page-ready .site-footer {
  animation: pageFadeIn 0.6s ease forwards;
}

body.page-ready main {
  animation-delay: 0.08s;
}

body.page-ready .site-footer {
  animation-delay: 0.16s;
}

button,
select,
a {
  cursor: default;
}

input,
textarea {
  cursor: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

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

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.top-bar .container {
  width: min(100% - 32px, 1280px);
}

.top-bar {
  background: linear-gradient(90deg, #4f8fca 0%, #3b76b7 60%, #2f63a4 100%);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(10, 30, 44, 0.2);
  border-bottom: none;
  padding-bottom: 0;
}

.site-header {
  box-shadow: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 110px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}

.brand-title {
  font-weight: 700;
  color: var(--white);
  display: block;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  display: block;
}

.seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #f9fbff;
  padding: 3px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(15, 43, 71, 0.15);
}

.seal.large {
  width: 180px;
  height: 180px;
  padding: 8px;
  margin-bottom: 20px;
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 500;
  flex-wrap: nowrap;
  justify-content: flex-end;
  white-space: nowrap;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links .login {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.nav-links .login::after {
  display: none;
}

.nav-close {
  display: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  padding: 6px 6px;
  border-radius: 0;
  font-family: inherit;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-toggle-icon {
  display: grid;
  gap: 4px;
}

.nav-toggle-icon span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  padding: calc(var(--header-height) + 16px) 0 56px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(120deg, rgba(32, 54, 80, 0.72) 0%, rgba(36, 64, 98, 0.65) 50%, rgba(40, 70, 110, 0.7) 100%),
    url("../../img/header.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  user-select: none;
  z-index: 0;
}

main {
  position: relative;
  padding-top: 0;
}

.hero-spacer {
  height: 100vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.06), transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -160px;
  top: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 65%);
  opacity: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: start;
  position: relative;
  z-index: 1;
  padding-bottom: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
  align-self: start;
  margin-top: -14px;
}

.hero-copy > * {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.hero-copy > :nth-child(4) { animation-delay: 0.28s; }
.hero-copy > :nth-child(5) { animation-delay: 0.36s; }

.hero-copy a,
.hero-copy button {
  user-select: none;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #0f4c7c;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  width: fit-content;
  margin-top: 0;
}

.hero-copy h1 {
  font-size: clamp(1.85rem, 3.1vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 12px 28px rgba(10, 30, 44, 0.45);
  color: #ffffff;
}

.hero-lead {
  font-size: 1.02rem;
  max-width: 580px;
  padding-left: 14px;
  border-left: 3px solid rgba(246, 194, 122, 0.85);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.hero-highlight {
  max-width: 600px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 36, 51, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 18px 36px rgba(10, 30, 44, 0.12);
}

.hero-highlight p {
  margin-bottom: 12px;
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(29, 122, 110, 0.12);
  color: var(--sky-800);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-actions .btn {
  padding: 10px 18px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(15, 36, 51, 0.12);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(246, 194, 122, 0.9), rgba(99, 182, 172, 0.9));
  opacity: 0.9;
}

.hero-chat-card {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 26px 60px rgba(10, 30, 44, 0.25);
  backdrop-filter: blur(12px);
  width: min(320px, 100%);
  justify-self: start;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.35s;
  padding: 16px;
}

.hero-chat-card::before {
  display: none;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 700;
  padding-top: 6px;
}

.status {
  background: rgba(29, 122, 110, 0.15);
  color: var(--sky-800);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.chat-window {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding: 14px;
  background: linear-gradient(180deg, #f7fcfb 0%, #ffffff 100%);
  border-radius: 16px;
  border: 1px solid rgba(15, 36, 51, 0.08);
}

.hero-chat-window {
  max-height: none;
  background: linear-gradient(135deg, rgba(120, 170, 230, 0.55), rgba(160, 200, 245, 0.35));
  border: 1px solid rgba(120, 160, 210, 0.35);
  border-radius: 18px;
  padding: 12px 14px;
}

.hero-chat-window .chat-bubble {
  display: none;
}

.chat-intro {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(10, 30, 44, 0.2));
}

.chat-intro-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #1a3750;
}

.chat-intro-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.chat-intro-sub {
  font-size: 0.86rem;
  color: #255d7a;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.96rem;
  box-shadow: 0 6px 16px rgba(10, 30, 44, 0.08);
  max-width: 86%;
  line-height: 1.5;
}

.chat-bubble.bot {
  background: #eefbf7;
  border: 1px solid rgba(29, 122, 110, 0.12);
  align-self: flex-start;
}

.chat-bubble.user {
  background: #e6f3ff;
  border: 1px solid rgba(34, 86, 133, 0.12);
  align-self: flex-end;
}

.chat-bubble.admin {
  background: #fff4e8;
  border: 1px solid rgba(239, 127, 109, 0.2);
  align-self: flex-start;
}

.chat-bubble.system {
  background: #f2f4f7;
  border: 1px solid rgba(15, 36, 51, 0.12);
  color: rgba(15, 36, 51, 0.7);
  align-self: center;
  font-size: 0.78rem;
  padding: 6px 10px;
  box-shadow: none;
}

.hero-chat-window .chat-bubble {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(47, 111, 177, 0.15);
  box-shadow: none;
}

.hero-chat-window .chat-bubble.user {
  background: rgba(255, 255, 255, 0.95);
}

.chat-input {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 5px;
  border: 1px solid rgba(15, 36, 51, 0.08);
}

.chat-input button,
.send-btn,
.kapbot-launcher,
.floating-kapbot .float-cta,
.floating-kapbot .float-close,
.kapbot-modal-close,
.end-chat {
  cursor: pointer;
}

.chat-input input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-chat-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 26px rgba(10, 30, 44, 0.18);
}

.hero-chat-input input::placeholder {
  color: rgba(15, 36, 51, 0.45);
}

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(109, 162, 216, 0.6);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.send-btn svg {
  width: 16px;
  height: 16px;
  fill: #1d4f7a;
}

.send-btn:hover {
  transform: translateY(-2px);
  background: rgba(109, 162, 216, 0.8);
}

.hero-socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.hero-socials a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(47, 111, 177, 0.85);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 10px 20px rgba(10, 30, 44, 0.25);
}

.hero-socials svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 360px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.25s;
  align-self: end;
  height: 100%;
  margin-bottom: 0;
}

.hero-seal {
  position: absolute;
  width: min(540px, 104%);
  height: min(540px, 104%);
  background: url("../../img/logo1.png") center 50%/105% 109% no-repeat;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.45;
  filter: drop-shadow(0 22px 40px rgba(10, 30, 44, 0.35));
  bottom: -28px;
}

.hero-person {
  width: min(560px, 104%);
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 46px rgba(10, 30, 44, 0.4));
  align-self: flex-end;
  margin-bottom: 0;
  transform: translateY(38px);
}

.chat-input input:focus {
  outline: none;
  border-color: rgba(29, 122, 110, 0.4);
  box-shadow: 0 0 0 3px rgba(29, 122, 110, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--sky-700), #2a978a);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(29, 122, 110, 0.25);
}

.btn.ghost {
  border-color: rgba(29, 122, 110, 0.35);
  color: var(--sky-800);
  background: rgba(29, 122, 110, 0.08);
}

.hero .btn.primary {
  background: linear-gradient(135deg, #4f8fca, #2f63a4);
  box-shadow: 0 16px 30px rgba(17, 45, 75, 0.35);
}

.hero .btn.ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow: 0 18px 32px rgba(10, 30, 44, 0.2);
}

.announcement {
  background: linear-gradient(90deg, #4f8fca 0%, #3b76b7 60%, #2f63a4 100%);
  color: var(--white);
  padding: 14px 0;
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.announcement .container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.announcement .container > span {
  font-weight: 700;
  line-height: 1;
}

.announcement p {
  margin: 0;
  line-height: 1.3;
  color: #ffffff;
}

.announcement-list {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: visible;
  display: flex;
  align-items: center;
}

.announcement-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 32px;
  animation: none;
  width: 100%;
}

.announcement-row {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  white-space: normal;
  flex-wrap: wrap;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.announcement-item:first-child::before {
  content: none;
}

.announcement-item::after {
  content: none;
}

.announcement-title {
  font-weight: 400;
  color: #ffffff;
  display: inline;
}

.announcement-message {
  margin: 0;
  line-height: 1.3;
  color: #000000;
  display: inline;
  font-weight: 400;
}

@keyframes announceMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 72px 0;
  position: relative;
  z-index: 1;
  background: #ffffff;
}

.section.alt {
  background: #f1f7f4;
  border-top: 1px solid rgba(15, 36, 51, 0.08);
  border-bottom: 1px solid rgba(15, 36, 51, 0.08);
}

#about.section {
  background: #fffaf2;
}

#contact.section {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  padding-bottom: 44px;
}

#contact-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
}

#contact-body {
  font-size: 1rem;
}

#contact .split {
  align-items: center;
  gap: 36px;
}

#advisories.section {
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 70%);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 56px 0;
}

#advisories.section::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 220px;
  background: radial-gradient(circle, rgba(79, 143, 202, 0.18), transparent 70%);
  pointer-events: none;
}

.projects-showcase {
  background:
    linear-gradient(0deg, rgba(191, 224, 255, 0.82), rgba(191, 224, 255, 0.82)),
    url("../../img/img2.png");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;
}

.projects-showcase::before,
.projects-showcase::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(90deg, #8fc3ea 0%, #6aa6d6 60%, #5a8cc7 100%);
  z-index: 0;
}

.projects-showcase::before {
  top: 0;
}

.projects-showcase::after {
  bottom: 0;
}

.projects-showcase .container {
  position: relative;
  z-index: 1;
}

.projects-banner {
  background: rgba(206, 224, 242, 0.75);
  border-radius: 14px;
  padding: 18px 24px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
  box-shadow: 0 18px 36px rgba(11, 49, 82, 0.2);
  backdrop-filter: blur(2px);
}

.projects-title {
  display: block;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: #2f6aa8;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.6);
}

.projects-banner h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.projects-circles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  justify-items: center;
}

.project-item {
  width: clamp(220px, 24vw, 320px);
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.project-circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
  margin: 0;
}

.project-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  cursor: default;
}

.project-caption {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  border: none;
  box-shadow: none;
}

.projects-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.projects-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
}

.projects-dots span.active {
  background: rgba(0, 0, 0, 0.55);
}

.projects-hitareas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.projects-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  border: none;
  background: transparent;
  cursor: default;
  pointer-events: auto;
}

.projects-hit.prev {
  left: 0;
}

.projects-hit.next {
  right: 0;
}

.section-sub {
  text-align: center;
  font-weight: 600;
  color: var(--sky-700);
  margin-bottom: 28px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.about-visual {
  display: grid;
  gap: 18px;
  justify-items: center;
  align-content: start;
  position: relative;
}

.about-visual::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -20px;
  top: -30px;
  background: radial-gradient(circle, rgba(79, 143, 202, 0.22), transparent 70%);
  z-index: 0;
}

.about-photo {
  z-index: 1;
}

.about-card {
  background: #ffffff;
  border: 1px solid rgba(15, 36, 51, 0.12);
  padding: 22px 24px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(10, 30, 44, 0.14);
  width: min(520px, 100%);
}

.about-copy {
  max-width: 640px;
}

.about-copy p {
  font-size: 1.02rem;
}

.seal.large {
  width: 160px;
  height: 160px;
  padding: 8px;
  margin-bottom: 0;
  box-shadow: 0 18px 36px rgba(10, 30, 44, 0.18);
  border: 6px solid #ffffff;
}

.about-photo {
  width: min(440px, 96%);
  height: auto;
  border-radius: 22px;
  box-shadow: none;
  border: none;
  object-fit: cover;
  position: relative;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.advisory-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.advisory-frame {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: grid;
  place-items: center;
  min-height: auto;
  backdrop-filter: none;
  position: relative;
}

.advisory-frame::before {
  content: none;
}

.advisory-slide {
  width: min(520px, 92%);
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  display: none;
}

.advisory-slide.active {
  display: block;
  animation: advisoryFade 0.5s ease;
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  border: none;
  color: var(--sky-800);
  cursor: default;
  box-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  display: grid;
  place-items: center;
}

.slider-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--sky-800);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.advisory-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.advisory-tag {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(29, 122, 110, 0.12);
  color: var(--sky-800);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.advisory-date {
  color: var(--muted);
  font-size: 0.85rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 14px 28px rgba(10, 30, 44, 0.12);
}

.section .about-card,
.section .project-card,
.section .voice-card,
.section .stack-card,
.section .contact,
.section .staff-card,
.section .news-card,
.section .schedule-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible .about-card,
.section.visible .project-card,
.section.visible .voice-card,
.section.visible .stack-card,
.section.visible .contact,
.section.visible .staff-card,
.section.visible .news-card,
.section.visible .schedule-card {
  opacity: 1;
  transform: translateY(0);
}

.section.visible .project-card:nth-child(1) { transition-delay: 0.08s; }
.section.visible .project-card:nth-child(2) { transition-delay: 0.16s; }
.section.visible .project-card:nth-child(3) { transition-delay: 0.24s; }

.section.visible .staff-card:nth-child(1) { transition-delay: 0.05s; }
.section.visible .staff-card:nth-child(2) { transition-delay: 0.1s; }
.section.visible .staff-card:nth-child(3) { transition-delay: 0.15s; }
.section.visible .staff-card:nth-child(4) { transition-delay: 0.2s; }

.section.visible .news-card:nth-child(1) { transition-delay: 0.05s; }
.section.visible .news-card:nth-child(2) { transition-delay: 0.1s; }
.section.visible .news-card:nth-child(3) { transition-delay: 0.15s; }
.section.visible .news-card:nth-child(4) { transition-delay: 0.2s; }

.section.visible .schedule-card:nth-child(1) { transition-delay: 0.05s; }
.section.visible .schedule-card:nth-child(2) { transition-delay: 0.1s; }
.section.visible .schedule-card:nth-child(3) { transition-delay: 0.15s; }
.section.visible .schedule-card:nth-child(4) { transition-delay: 0.2s; }

.section.visible .stack-grid > div:nth-child(1) { transition-delay: 0.06s; }
.section.visible .stack-grid > div:nth-child(2) { transition-delay: 0.12s; }
.section.visible .stack-grid > div:nth-child(3) { transition-delay: 0.18s; }
.section.visible .stack-grid > div:nth-child(4) { transition-delay: 0.24s; }

@keyframes pageFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.staff-grid.page-animate .staff-card,
.news-grid.page-animate .news-card,
.schedule-grid.page-animate .schedule-card {
  animation: pageFadeUp 0.45s ease both;
}

.staff-grid.page-animate .staff-card:nth-child(1),
.news-grid.page-animate .news-card:nth-child(1),
.schedule-grid.page-animate .schedule-card:nth-child(1) {
  animation-delay: 0.03s;
}

.staff-grid.page-animate .staff-card:nth-child(2),
.news-grid.page-animate .news-card:nth-child(2),
.schedule-grid.page-animate .schedule-card:nth-child(2) {
  animation-delay: 0.08s;
}

.staff-grid.page-animate .staff-card:nth-child(3),
.news-grid.page-animate .news-card:nth-child(3),
.schedule-grid.page-animate .schedule-card:nth-child(3) {
  animation-delay: 0.13s;
}

.staff-grid.page-animate .staff-card:nth-child(4),
.news-grid.page-animate .news-card:nth-child(4),
.schedule-grid.page-animate .schedule-card:nth-child(4) {
  animation-delay: 0.18s;
}

.about-card:hover,
.stack-card:hover,
.voice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(10, 30, 44, 0.18);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(10, 30, 44, 0.18);
}


.voices {
  text-align: center;
}

.voice-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

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

.voice-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: none;
}

.staff-grid,
.news-grid,
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 24px;
  cursor: default;
}

.staff-card,
.news-card,
.schedule-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: none;
  display: grid;
  gap: 10px;
  cursor: default;
}

.staff-card {
  border: none;
}

.staff-card img,
.news-card img {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  object-fit: cover;
}

.staff-card h4,
.news-card h4,
.schedule-card h4 {
  margin: 0;
}

.staff-meta,
.news-meta,
.schedule-meta {
  font-size: 0.85rem;
  color: rgba(15, 36, 51, 0.7);
}

.pager-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  min-height: 12px;
}

.section-pagination .pager-dots,
.staff-pagination .pager-dots {
  margin-top: 0;
}

.pager-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(47, 99, 164, 0.2);
  box-shadow: inset 0 0 0 1px rgba(47, 99, 164, 0.25);
}

.pager-dots .dot.active {
  width: 18px;
  background: linear-gradient(135deg, #2f63a4, #4f8fca);
  box-shadow: 0 6px 12px rgba(15, 36, 51, 0.18);
}

.staff-pagination,
.section-pagination {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.staff-pagination .btn,
.section-pagination .btn {
  padding: 8px 16px;
}

.tap-pagination .btn {
  display: none;
}

.staff-pagination .staff-page,
.section-pagination .staff-page {
  font-weight: 600;
  color: rgba(15, 36, 51, 0.7);
}

.staff-pagination .btn:disabled,
.section-pagination .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.staff-empty {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(47, 99, 164, 0.35);
  background: rgba(79, 143, 202, 0.08);
  color: rgba(15, 36, 51, 0.7);
  text-align: center;
  font-weight: 600;
}

.news-card p,
.schedule-card p {
  margin: 0;
  color: rgba(15, 36, 51, 0.85);
  line-height: 1.5;
}

.quote {
  font-style: italic;
}

.stars {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 4px;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: #f5b933;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(15, 36, 51, 0.2);
  background: #ffffff;
  color: var(--sky-800);
  cursor: default;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--sky-800);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.dots span {
  width: 10px;
  height: 10px;
  background: rgba(29, 122, 110, 0.25);
  border-radius: 50%;
}

.review-form {
  margin: 20px auto 0;
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-form.locked {
  opacity: 0.7;
}

.review-form.locked input,
.review-form.locked select,
.review-form.locked textarea,
.review-form.locked button {
  pointer-events: none;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
}

.review-form input,
.review-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 36, 51, 0.12);
  font-family: inherit;
}

.review-form textarea {
  resize: vertical;
}

.rating-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 36, 51, 0.12);
  border-radius: 12px;
  background: #ffffff;
  height: 42px;
}

.rating-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-stars label {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  color: #c8d0d8;
  font-size: 1.25rem;
  line-height: 1;
}

.rating-stars label::before {
  content: "★";
}

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
  color: #f0b44b;
}

.review-form.locked .rating-stars label {
  pointer-events: none;
}

.voices-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.rating-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2100;
}

.rating-modal.open {
  display: flex;
}

.rating-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.6);
  backdrop-filter: blur(2px);
}

.rating-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 92%);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 28px 60px rgba(10, 30, 44, 0.3);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(15, 36, 51, 0.12);
}

.rating-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 36, 51, 0.08);
  font-size: 1.2rem;
  cursor: default;
}

.rating-modal-card h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  color: #0f2a3a;
  letter-spacing: -0.01em;
}

.rating-modal-card .review-form {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 36, 51, 0.1);
  box-shadow: 0 14px 30px rgba(12, 36, 64, 0.12);
}

.rating-modal-card .review-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.rating-modal-card .rating-stars {
  height: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5f8ff;
  border: 1px solid rgba(47, 99, 164, 0.18);
}

.rating-modal-card .rating-stars label {
  width: 28px;
  height: 28px;
  font-size: 1.35rem;
}

.rating-modal-card textarea {
  min-height: 120px;
}

.rating-modal-card .btn.primary {
  width: 100%;
}

@media (max-width: 600px) {
  .rating-modal-card {
    width: min(520px, 94%);
    padding: 18px;
  }

  .rating-modal-card .review-grid {
    grid-template-columns: 1fr;
  }

  .rating-modal-card .rating-stars {
    justify-content: center;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.6);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 92%);
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(10, 30, 44, 0.28);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-card h3 {
  margin: 0;
}

.modal-card input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 36, 51, 0.15);
  font-family: inherit;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 36, 51, 0.08);
  font-size: 1.2rem;
  cursor: default;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stack-grid h3 {
  margin-bottom: 6px;
}

.stack-side {
  display: flex;
  justify-content: center;
}

.stack-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.stack-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.contact {
  display: grid;
  gap: 12px;
}

.contact.card {
  border: 1px solid rgba(47, 99, 164, 0.15);
  box-shadow: none;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 36, 51, 0.12);
  background: #f8fbff;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: rgba(29, 122, 110, 0.4);
  box-shadow: 0 0 0 3px rgba(29, 122, 110, 0.12);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(29, 122, 110, 0.14);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--sky-800);
  border: 1px solid rgba(29, 122, 110, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  background: rgba(29, 122, 110, 0.22);
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: #1f5f84;
}

.contact-illustration {
  width: min(460px, 100%);
  height: 240px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(10, 30, 44, 0.18);
  margin: 16px 0 10px;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(15, 36, 51, 0.08);
}

.contact-details {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 12px 0 16px;
  color: var(--ink);
  box-shadow: none;
}

.contact-details-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(15, 36, 51, 0.55);
  font-weight: 600;
  box-shadow: none;
  text-transform: none;
}

.contact-details p {
  margin: 8px 0;
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.contact-details strong {
  min-width: 110px;
  color: #143754;
}

.contact-details span {
  font-size: 0.95rem;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  color: #2b8a53;
  min-height: 1.2em;
}

.form-status.error {
  color: #d1495b;
}

.site-footer {
  background: #2b2727;
  padding: 24px 0 12px;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-footer .brand-title {
  color: #f0f4f8;
  font-weight: 700;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  column-gap: 64px;
  row-gap: 20px;
  align-items: start;
}

.footer-title {
  font-weight: 700;
  color: #f0f4f8;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
  font-size: 1rem;
}

.site-footer p,
.site-footer span,
.site-footer a {
  color: #c8d2dc;
  font-size: 0.95rem;
}

.site-footer p {
  max-width: 320px;
}

.site-footer span {
  display: block;
  margin: 4px 0;
}

.site-footer a {
  display: block;
  margin: 4px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover {
  color: #6bd0ff;
  transform: translateX(2px);
}

.footer-note {
  margin-bottom: 8px;
  color: #b9c6d2;
  font-size: 0.93rem;
}

.footer-subscribe {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 8px 0 8px;
}

.footer-subscribe input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #1f1b1b;
  color: #f5f8fb;
  font-family: inherit;
  font-size: 0.92rem;
}

.footer-subscribe input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-subscribe button {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #e5533a;
  color: #ffffff;
  font-weight: 600;
  cursor: default;
  transition: transform 0.2s ease, filter 0.2s ease;
  font-size: 0.9rem;
}

.footer-subscribe button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1f1b1b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  margin: 0;
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  fill: #dbe5ef;
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  padding: 8px 0 0;
  font-size: 0.84rem;
}

.floating-kapbot {
  position: fixed;
  right: 20px;
  bottom: 92px;
  width: min(300px, 92vw);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  padding: 14px;
  border-radius: 16px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: none;
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.floating-kapbot.open {
  display: grid;
}

.floating-kapbot .float-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--sky-800);
  gap: 8px;
}

.floating-kapbot .float-close {
  border: none;
  background: rgba(15, 36, 51, 0.08);
  color: var(--sky-800);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.floating-kapbot .float-end {
  margin-left: auto;
}

.end-chat {
  border: 1px solid rgba(15, 36, 51, 0.15);
  background: #ffffff;
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: none;
}

.end-chat:hover {
  border-color: rgba(15, 36, 51, 0.35);
}

.kapbot-modal-header .end-chat {
  margin-left: auto;
}

.floating-kapbot .chat-window {
  max-height: 260px;
  padding: 10px;
  gap: 8px;
  background: #ffffff;
}

.floating-kapbot .chat-bubble {
  font-size: 0.85rem;
  box-shadow: none;
}

.floating-kapbot .chat-input {
  margin-top: 0;
  background: #ffffff;
}

.floating-kapbot .float-cta {
  text-align: center;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-700), #2a978a);
  padding: 8px 10px;
  border-radius: 999px;
}

.kapbot-rating {
  display: none;
  padding: 14px 16px 18px;
}

.kapbot-rating-card {
  background: #ffffff;
  border: 1px solid rgba(15, 36, 51, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 12px 24px rgba(10, 30, 44, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kapbot-rating-card strong {
  color: #0f2433;
}

.kapbot-rating-card p {
  margin: 0;
  color: rgba(15, 36, 51, 0.7);
  font-size: 0.88rem;
}

.kapbot-launcher {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 1001;
}

.kapbot-launcher:hover {
  transform: translateY(-4px);
}

.kapbot-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.kapbot-modal.open {
  display: flex;
}

.kapbot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.55);
  backdrop-filter: blur(2px);
}

.kapbot-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 92%);
  max-height: 80vh;
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 20px 40px rgba(10, 30, 44, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kapbot-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 36, 51, 0.08);
  font-size: 1.2rem;
  cursor: pointer;
}

.kapbot-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-right: 44px;
}

.kapbot-modal-window {
  max-height: 46vh;
  background: #ffffff;
}

.kapbot-launcher img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(21, 59, 96, 0.25));
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(2px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
  will-change: opacity, transform, filter;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (max-width: 900px) {
  .site-header {
    z-index: 2002;
  }
  .nav {
    padding: 10px 16px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: linear-gradient(180deg, #2f63a4 0%, #234b7d 100%);
    padding: 72px 22px 28px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    pointer-events: none;
    visibility: hidden;
    z-index: 5000;
  }

  .nav-links.open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }

  .nav-links a {
    font-size: 0.98rem;
    width: 100%;
    padding: 10px 4px;
    color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-close {
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .nav-overlay {
    display: none;
    z-index: 1;
    pointer-events: none;
  }

  body.nav-open {
    overflow: auto;
  }

  body.nav-open .kapbot-launcher,
  body.nav-open .floating-kapbot {
    display: none !important;
  }

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

  .voice-carousel {
    grid-template-columns: 1fr;
  }

  .voice-cards {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    display: none;
  }

  .hero-chat-card {
    justify-self: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 48px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    margin-bottom: 0;
  }

  .hero-person {
    margin-bottom: 0;
  }

  .hero-seal {
    bottom: 0;
  }

  .projects-showcase {
    padding: 64px 0 72px;
  }

  .projects-banner {
    margin-bottom: 28px;
  }

  .projects-circles {
    gap: 18px;
  }

  #advisories.section {
    padding: 44px 0;
  }

  .staff-grid,
  .news-grid,
  .schedule-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(340px, 1.1fr) minmax(320px, 0.9fr);
  }
}

@media (max-width: 1200px) {
  .brand-sub {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --announce-offset: 76px;
  }

  .hero-person {
    display: none;
  }

  img[src$="logo.png"] {
    display: none;
  }

  .seal,
  .hero-seal,
  img[src$="logo1.png"] {
    display: none;
  }

  .hero {
    position: relative;
    padding: 72px 0 16px;
    height: auto;
    min-height: auto;
    background-position: center top;
  }

  .hero-spacer {
    height: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .hero-copy {
    margin-top: 0;
    gap: 12px;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
  }

  #advisories-title {
    font-size: clamp(1.35rem, 6.2vw, 1.7rem);
    white-space: nowrap;
  }

  .hero-copy h1 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
    line-height: 1.12;
  }

  .hero-chat-card {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
  }

  .hero-chat-window {
    background: linear-gradient(135deg, rgba(120, 170, 230, 0.28), rgba(255, 255, 255, 0.7));
  }

  .hero-socials {
    justify-content: flex-start;
  }

  .socials {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 8px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .hero-visual {
    min-height: 0;
    display: none;
  }

  .hero-seal {
    width: 320px;
    height: 320px;
    bottom: -40px;
    opacity: 0.18;
  }

  .hero-person {
    width: min(320px, 86%);
    transform: translateY(12px);
  }

  .projects-circles {
    grid-template-columns: 1fr;
  }

  .project-item {
    width: min(280px, 92%);
  }

  .staff-grid,
  .news-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

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

  .about-card {
    padding: 16px 18px;
  }

  .about-visual::before {
    width: 200px;
    height: 200px;
    right: -10px;
    top: -18px;
    opacity: 0.45;
  }

  .about-photo {
    width: min(280px, 88%);
    border-radius: 18px;
  }

  .announcement .container {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .announcement {
    margin-top: 0;
    padding: 12px 0;
  }

  .announcement-list,
  .announcement-track,
  .announcement-row {
    width: 100%;
  }

  .announcement-row {
    gap: 32px;
    padding-right: 32px;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .announcement-item {
    white-space: nowrap;
    align-items: center;
  }

  .announcement-message {
    color: #ffffff;
  }

  .announcement-list {
    overflow: hidden;
  }

  .announcement-track.marquee {
    width: max-content;
    animation: announceMarquee 18s linear infinite;
  }

  .site-footer {
    padding: 20px 0 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    row-gap: 14px;
    column-gap: 0;
  }

  .footer-title {
    font-size: 0.95rem;
  }

  .site-footer p,
  .site-footer span,
  .site-footer a {
    font-size: 0.85rem;
  }

  .footer-socials {
    gap: 8px;
  }

  .footer-socials a {
    width: 30px;
    height: 30px;
  }

  .kapbot-launcher {
    width: 118px;
    height: 118px;
    right: 12px;
    bottom: 72px;
  }

  .kapbot-launcher img {
    width: 108px;
    height: 108px;
  }

  .site-footer {
    padding-bottom: 16px;
  }

  .copyright {
    padding-bottom: 0;
  }

  .chat-input {
    flex-direction: column;
  }

  .floating-kapbot .chat-input {
    flex-direction: row;
    align-items: center;
  }

  .floating-kapbot .chat-input input {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .floating-kapbot .chat-input input::placeholder {
    font-size: 0.85rem;
  }

  .floating-kapbot .send-btn {
    width: 34px;
    height: 34px;
  }

  .kapbot-modal .chat-input {
    flex-direction: row;
    align-items: center;
  }

  .kapbot-modal .chat-input input {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .kapbot-modal .chat-input input::placeholder {
    font-size: 0.85rem;
  }

  .kapbot-modal .send-btn {
    width: 34px;
    height: 34px;
  }

  .hero-chat-input {
    flex-direction: row;
  }

  .contact-details {
    padding: 12px 14px;
    box-shadow: none;
  }

  .contact-details p {
    margin: 6px 0;
    font-size: 0.85rem;
  }

  .contact-details strong {
    min-width: 90px;
    font-size: 0.85rem;
  }

  .contact-details span {
    font-size: 0.85rem;
  }

  .contact.card {
    box-shadow: none;
  }

  .contact input:focus,
  .contact textarea:focus {
    box-shadow: none;
  }

  .contact-details.is-collapsed {
    display: none;
  }

  .contact-details-toggle {
    display: inline-flex;
    align-self: flex-start;
  }

  .floating-kapbot {
    right: 12px;
    left: 12px;
    bottom: 96px;
  }

  .advisory-slider {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "frame frame"
      "prev next";
    gap: 12px 16px;
  }

  .advisory-frame {
    grid-area: frame;
  }

  .slider-btn.prev {
    grid-area: prev;
    justify-self: end;
  }

  .slider-btn.next {
    grid-area: next;
    justify-self: start;
  }

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

  #advisories.section {
    padding: 36px 0;
  }

  .staff-grid,
  .news-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
  }
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: auto;
}
