﻿:root {
  --bg: #071521;
  --bg-soft: rgba(9, 24, 38, 0.82);
  --surface: rgba(242, 248, 253, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --text: #16212b;
  --muted: #4e6275;
  --line: rgba(87, 138, 185, 0.2);
  --primary: #3f97dd;
  --primary-deep: #2c79b6;
  --accent: #8e9aaa;
  --accent-soft: rgba(63, 151, 221, 0.12);
  --shadow: 0 24px 80px rgba(43, 79, 110, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(63, 151, 221, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 181, 86, 0.16), transparent 24%),
    linear-gradient(180deg, #071521 0%, #0c2335 52%, #10293c 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(127, 203, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 203, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0.65;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 181, 86, 0.24), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(79, 205, 255, 0.16), transparent 24%),
    radial-gradient(circle at 72% 72%, rgba(255, 181, 86, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(7, 26, 42, 0.08), rgba(7, 26, 42, 0));
  mix-blend-mode: screen;
  opacity: 0.58;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 48px;
  position: relative;
  z-index: 4;
}

.hidden {
  display: none !important;
}

.hero,
.section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.code-rain {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  opacity: 0.58;
  mix-blend-mode: screen;
}

.code-rain::before,
.code-rain::after {
  content: "";
  position: absolute;
  inset: 0;
}

.code-rain::before {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 176, 64, 0.24), transparent 18%),
    radial-gradient(circle at 88% 76%, rgba(62, 186, 228, 0.2), transparent 24%);
  filter: blur(8px);
}

.code-rain::after {
  background:
    linear-gradient(90deg, rgba(255, 180, 77, 0.08), rgba(53, 161, 227, 0.18), rgba(255, 180, 77, 0.08)),
    linear-gradient(180deg, rgba(4, 16, 29, 0.04), rgba(4, 16, 29, 0));
  opacity: 0.52;
}

.code-column {
  position: absolute;
  top: -120%;
  width: 30px;
  will-change: transform;
  animation-name: codeFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.code-stream {
  display: block;
  white-space: pre;
  font-family: "Source Code Pro", "Outfit", monospace;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.06em;
  color: rgba(135, 229, 255, 0.62);
  text-shadow:
    0 0 8px rgba(93, 214, 255, 0.32),
    0 0 18px rgba(93, 214, 255, 0.18),
    0 0 30px rgba(93, 214, 255, 0.08);
  filter: blur(0);
}

.code-stream.warm {
  color: rgba(255, 196, 110, 0.56);
  text-shadow:
    0 0 8px rgba(255, 184, 92, 0.3),
    0 0 18px rgba(255, 184, 92, 0.16),
    0 0 30px rgba(255, 184, 92, 0.08);
}

.access-gate {
  position: relative;
  z-index: 4;
}

.hero {
  padding: 28px;
}

.hero::after,
.section::after {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(63, 151, 221, 0.18), transparent 70%);
  filter: blur(2px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.brand {
  font-family: "Source Serif 4", serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.topbar a:hover,
.topbar a:focus-visible {
  color: var(--primary-deep);
}

.hero-grid,
.profile-grid,
.spotlight-grid,
.chat-layout,
.form-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: 1.5fr 0.9fr;
  align-items: stretch;
}

.hero-copy {
  padding: 12px 8px 8px 4px;
}

.hero-photo-wrap {
  margin-bottom: 22px;
}

.hero-photo {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(127, 203, 255, 0.34);
  box-shadow:
    0 14px 36px rgba(11, 35, 58, 0.28),
    0 0 0 6px rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.24);
}

.eyebrow,
.card-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--primary);
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Source Serif 4", serif;
  line-height: 1.05;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.lead,
.section-copy,
.panel p,
.timeline-content p,
.message p,
.fact-list li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.lead {
  max-width: 60ch;
  margin: 24px 0 0;
  font-size: 1.1rem;
}

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

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.suggestion:hover,
.suggestion:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #f8fffe;
  box-shadow: 0 14px 36px rgba(63, 151, 221, 0.24);
}

.button-secondary {
  border-color: rgba(63, 151, 221, 0.2);
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-deep);
}

.hero-card,
.panel,
.chat-panel,
.prompt-panel {
  border-radius: calc(var(--radius-lg) - 8px);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  padding: 26px;
}

.access-gate {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.gate-card {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero-card {
  align-self: end;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(235, 244, 251, 0.92)),
    var(--surface-strong);
}

.fact-list {
  padding-left: 18px;
  margin: 18px 0 0;
}

.status-pill {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--primary-deep);
  font-weight: 600;
}

.section {
  margin-top: 28px;
  padding: 34px 28px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.profile-grid {
  grid-template-columns: 1.2fr 1fr;
}

.accent-panel {
  background:
    radial-gradient(circle at top right, rgba(63, 151, 221, 0.12), transparent 35%),
    var(--surface-strong);
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.chip {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(63, 151, 221, 0.1);
  color: var(--primary-deep);
  font-weight: 500;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-year {
  padding-top: 8px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.timeline-content {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.92);
}

.spotlight-section {
  background:
    radial-gradient(circle at 8% 15%, rgba(63, 151, 221, 0.12), transparent 22%),
    radial-gradient(circle at 96% 8%, rgba(142, 154, 170, 0.14), transparent 25%),
    var(--surface);
}

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

.chat-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.suggestion {
  border: 1px solid rgba(63, 151, 221, 0.2);
  background: rgba(63, 151, 221, 0.08);
  color: var(--primary-deep);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chat-window {
  min-height: 360px;
  max-height: 480px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  animation: riseIn 260ms ease;
}

.message-row.user {
  justify-content: flex-end;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 24%;
  border: 1px solid rgba(63, 151, 221, 0.24);
  box-shadow: 0 10px 24px rgba(11, 35, 58, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.message {
  max-width: 88%;
  padding: 16px 18px;
  border-radius: 22px;
}

.message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #f4fffe;
}

.message.user p {
  color: inherit;
}

.message.bot {
  align-self: flex-start;
  background: rgba(63, 151, 221, 0.08);
  border: 1px solid rgba(63, 151, 221, 0.1);
}

.message p {
  white-space: pre-line;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.chat-form input {
  min-width: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31, 41, 51, 0.12);
  padding: 14px 18px;
  font: inherit;
  background: rgba(255, 255, 255, 0.85);
}

.chat-form input:focus {
  outline: 2px solid rgba(63, 151, 221, 0.16);
  border-color: rgba(63, 151, 221, 0.34);
}

.admin-shell {
  margin-top: 20px;
}

.admin-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.admin-main.hidden,
.admin-login.hidden {
  display: none;
}

.login-form,
.password-form {
  max-width: 520px;
}

.login-form,
.admin-form,
.password-form {
  display: grid;
  gap: 16px;
}

.admin-form label,
.login-form label,
.password-form label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

.admin-form input,
.admin-form textarea,
.login-form input,
.password-form input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  padding: 14px 18px;
  font: inherit;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
}

.admin-form textarea {
  resize: vertical;
  min-height: 120px;
}

.admin-form input:focus,
.admin-form textarea:focus,
.login-form input:focus,
.password-form input:focus {
  outline: 2px solid rgba(63, 151, 221, 0.16);
  border-color: rgba(63, 151, 221, 0.34);
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.catalog-header,
.catalog-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.catalog-list {
  display: grid;
  gap: 18px;
}

.catalog-entry {
  padding: 22px;
}

.content-editor {
  display: grid;
  gap: 16px;
}

.compact-header {
  margin-top: 6px;
}

.image-admin-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-image-preview {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.document-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 240px;
}

.documents-categories {
  display: grid;
  gap: 28px;
}

.documents-category {
  display: grid;
  gap: 16px;
}

.documents-category-header h3 {
  margin: 0;
}

.documents-category .documents-grid {
  grid-template-columns: 1fr;
}

.topbar-compact {
  justify-content: flex-end;
}

.documents-hero-copy {
  max-width: 760px;
}

.documents-lead {
  max-width: 62ch;
}

.helper-text,
.helper-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--primary-deep);
}

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

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

@keyframes codeFall {
  from {
    transform: translateY(-10%);
  }
  to {
    transform: translateY(230%);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .profile-grid,
  .spotlight-grid,
  .chat-layout,
  .form-grid,
  .documents-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-grid {
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    margin: 10px auto 24px;
  }

  .hero,
  .section {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .topbar-links {
    gap: 12px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 13vw, 3.7rem);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-year {
    padding-top: 0;
  }

  .chat-window {
    min-height: 300px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .message-row {
    gap: 10px;
  }

  .chat-avatar {
    width: 36px;
    height: 36px;
  }

  .message {
    max-width: 100%;
  }

  .catalog-header,
  .catalog-entry-header,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.single-panel-grid {
  grid-template-columns: 1fr;
}

.project-card {
  min-height: 260px;
}

.project-subtitle {
  margin: 8px 0 10px;
  color: var(--primary-deep);
  font-weight: 600;
}


.contact-section {
  padding-top: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.contact-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-name {
  max-width: 100%;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.contact-role {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.contact-card-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.project-card {
  min-height: 100%;
  padding: 0;
  overflow: hidden;
}

.project-card-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.project-card-body {
  padding: 24px;
}

.project-image-preview {
  width: 220px;
  height: 140px;
  border-radius: 18px;
}

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

.contact-grid {
  align-items: start;
}

.contact-copy .eyebrow {
  margin-bottom: 10px;
}

.contact-name {
  margin-top: 0;
  margin-bottom: 20px;
}

.contact-card {
  align-self: start;
  margin-top: 46px;
}

.contact-role {
  margin-top: 0;
}

.profile-section .section-heading h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.2;
}

.profile-section .section-copy {
  text-align: justify;
  text-justify: inter-word;
  max-width: 72ch;
}

.profile-section .section-heading {
  max-width: none;
  margin-bottom: 20px;
}

.profile-section .section-heading h2 {
  max-width: none;
  width: 100%;
  margin: 0;
}

.profile-section {
  padding-left: 20px;
  padding-right: 20px;
}

.profile-section .section-copy {
  max-width: none;
  width: 100%;
  text-align: justify;
  text-justify: inter-word;
}


.spotlight-section .section-heading {
  max-width: none;
  margin-bottom: 20px;
}

.spotlight-section .section-heading h2 {
  max-width: none;
  width: 100%;
  margin: 0;
}

.spotlight-section .section-copy {
  max-width: none;
  width: 100%;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.project-detail {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(63, 151, 221, 0.14);
}

.project-detail-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.project-detail p {
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.project-card-image {
  object-position: center 50%;
}

.more-projects-panel {
  margin-top: 22px;
}

.more-projects-panel p {
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}


.spotlight-grid .project-card:nth-child(3) .project-card-image {
  margin-top: 14px;
}

.spotlight-grid .project-card:nth-child(3) .project-card-image {
  object-position: center 78%;
}



.spotlight-grid .project-card:nth-child(3) .project-card-image {
  margin-top: 0 !important;
  object-position: center 50% !important;
}


.typing-message {
  padding: 14px 18px;
}

.message-row.bot .typing-message {
  max-width: fit-content;
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 12px;
}

.typing-indicator span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(63, 151, 221, 0.55);
  animation: typingPulse 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.18s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes typingPulse {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}








