@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap");

:root {
  --logoPrimary: #1455a0;
  --logoSecondary: #2b75c8;
  --logoAccent: #b51b79;
  --logoViolet: #6a4db5;
  --bg: #f6f9ff;
  --surface: #ffffff;
  --surface-muted: #eef4ff;
  --text: #173d74;
  --text-soft: #4f6890;
  --brand: var(--logoPrimary);
  --brand-dark: #0f4a90;
  --line: #d3deef;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(20, 85, 160, 0.11);
  --header-h: 92px;
  --titleGradient: linear-gradient(100deg, var(--logoSecondary) 8%, var(--logoViolet) 56%, var(--logoAccent) 100%);
  --brandHoverTint: linear-gradient(
    120deg,
    rgba(43, 117, 200, 0.12) 0%,
    rgba(106, 77, 181, 0.1) 52%,
    rgba(181, 27, 121, 0.12) 100%
  );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: linear-gradient(180deg, #f9fbff 0%, var(--bg) 44%, #f8fbff 100%);
  line-height: 1.7;
}

.mouse-gradient-glow {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.mouse-gradient-glow.is-visible {
  opacity: 0.86;
}

.mouse-tail-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(10px - (var(--i) * 0.7px));
  height: calc(10px - (var(--i) * 0.7px));
  border-radius: 999px;
  pointer-events: none;
  transform: translate3d(-240px, -240px, 0) scale(1);
  opacity: calc(0.68 - (var(--i) * 0.08));
  filter: blur(calc(0.3px + (var(--i) * 0.25px)));
  background: radial-gradient(
    circle at 35% 35%,
    rgba(var(--tail-rgb), 0.78) 0%,
    rgba(var(--tail-rgb), 0.62) 34%,
    rgba(var(--tail-rgb), 0.32) 72%,
    rgba(var(--tail-rgb), 0) 100%
  );
  will-change: transform, opacity;
}

a {
  color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--logoViolet);
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  line-height: 1.2;
  margin-top: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 44px;
}

h2 {
  font-size: 29px;
}

h3 {
  font-size: 21px;
}

p,
ul {
  margin-top: 0;
  font-size: 16px;
}

.container {
  width: min(1220px, 92%);
  margin: 0 auto;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-muted {
  background: linear-gradient(180deg, #eef4ff 0%, var(--surface-muted) 100%);
}

.page-hero {
  padding: 3.75rem 0 2.25rem;
  background: linear-gradient(
    130deg,
    rgba(43, 117, 200, 0.12) 0%,
    rgba(106, 77, 181, 0.09) 52%,
    rgba(181, 27, 121, 0.08) 100%
  );
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 760px;
  color: var(--text-soft);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--text);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

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

.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 6px 20px rgba(15, 74, 144, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.site-header .nav-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(8px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: clamp(170px, 30vw, 320px);
  height: auto;
  max-height: 84px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand span {
  display: block;
  color: var(--text-soft);
  font-size: 0.875rem;
}

.brand > div {
  display: none;
}

.nav-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 0.72rem;
  font: inherit;
  font-weight: 700;
  margin-left: auto;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.site-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 4%;
  box-shadow: 0 10px 30px rgba(15, 74, 144, 0.12);
}

.site-nav.open {
  display: flex;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  padding: 0.45rem 0;
  font-weight: 700;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.01em;
}

.site-nav a.active,
.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--titleGradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-linkedin {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #c8d8f2;
  color: var(--text-soft);
  background: #fff;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-left: 0.45rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.header-linkedin svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.header-linkedin:hover,
.header-linkedin:focus-visible {
  border-color: transparent;
  background: linear-gradient(95deg, var(--logoPrimary), var(--logoViolet) 56%, var(--logoAccent));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(20, 85, 160, 0.24);
}

.nav-dropdown {
  position: relative;
  display: grid;
}

.nav-dropdown-toggle {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  padding: 0.45rem 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown.active .nav-dropdown-toggle {
  background: var(--titleGradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-dropdown-menu {
  display: none;
  position: static;
  padding-left: 0.85rem;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-menu a {
  padding: 0.34rem 0;
  font-size: 0.94rem;
  font-weight: 600;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 68vh, 760px);
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  background: none;
  color: #fff;
  min-height: clamp(420px, 68vh, 760px);
  align-items: center;
  overflow: hidden;
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.85s ease-in-out;
}

.slide::before,
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.slide::before {
  background: var(--slide-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
}

.slide::after {
  background: linear-gradient(100deg, rgba(4, 15, 36, 0.52), rgba(9, 33, 73, 0.28) 48%, rgba(11, 37, 77, 0.2));
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.slide.active::before {
  animation: heroKenBurns 7.2s ease-out forwards;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: clamp(420px, 68vh, 760px);
  padding: 2rem 0 4rem;
}

.hero-content > * {
  width: min(680px, 92%);
}

.hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-content h2 {
  font-size: clamp(1.12rem, 2.4vw, 1.72rem);
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-content p {
  max-width: 640px;
  font-size: 16px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.23);
  color: rgba(255, 255, 255, 0.95);
}

.slider-controls {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 2;
}

.slider-dot {
  width: 22px;
  height: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-dot.active {
  width: 42px;
  background: #fff;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1.22rem;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 74, 144, 0.23);
}

.btn-light {
  background: #fff;
  color: var(--brand-dark);
}

.btn-outline {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid #b9cbeb;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #f0f5fe;
  color: var(--brand-dark);
}

.btn-block {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.hero-premium {
  padding-top: clamp(1.8rem, 3vw, 3rem);
}

.hero-premium-grid {
  display: grid;
  align-items: center;
  gap: 1.4rem;
}

.hero-copy p {
  max-width: 650px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border: 1px solid #bdd1f0;
  border-radius: 999px;
  color: var(--logoSecondary);
  background: #edf4ff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-chip svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gradient-title {
  background: var(--titleGradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.award-highlight {
  background: var(--titleGradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.achievement-card {
  position: relative;
  overflow: hidden;
}

.achievement-year-group {
  margin: 0;
}

.achievement-year-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: fit-content;
  min-width: 0;
  margin: 0 0 0.7rem 0.25rem;
  padding: 0.38rem 0.86rem;
  border-radius: 999px;
  background: linear-gradient(
    100deg,
    var(--logoSecondary) 8%,
    var(--logoViolet) 56%,
    var(--logoAccent) 100%
  );
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.page-hero h1,
.section h2,
.section-intro h2,
.section-head h2,
.contact-form-card h2,
.contact-copy h1,
.focus-card h3 {
  background: var(--titleGradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-media-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 0;
  box-shadow: 0 18px 36px rgba(16, 73, 138, 0.2);
}

.hero-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  animation: mediaFloatZoom 11s ease-in-out infinite alternate;
}

.hero-media-caption {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.1rem;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.hero-media-caption h3 {
  margin-bottom: 0.15rem;
  font-size: clamp(1.04rem, 1.75vw, 1.38rem);
}

.hero-media-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
}

.hero-float-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(290px, 82%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d0ddf1;
  border-radius: 18px;
  padding: 0.95rem 1rem;
  box-shadow: 0 14px 30px rgba(19, 70, 137, 0.2);
}

.hero-float-note h4 {
  margin: 0 0 0.25rem;
  color: var(--brand-dark);
  font-size: 1.14rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.hero-float-note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.section-intro {
  text-align: center;
  width: min(760px, 100%);
  margin: 0 auto 1.6rem;
}

.section-intro p {
  color: var(--text-soft);
}

.focus-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}

.focus-card {
  min-height: 260px;
}

.focus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid #d2deef;
  background: #f8fbff;
  color: var(--logoSecondary);
  margin-bottom: 0.85rem;
}

.focus-icon svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.focus-icon.pink {
  color: var(--logoAccent);
}

.focus-icon.blue {
  color: var(--logoSecondary);
}

.contact-premium-grid {
  display: grid;
  gap: 1.3rem;
  align-items: start;
}

.contact-copy {
  padding: 0.6rem 0;
}

.contact-copy p {
  max-width: 620px;
}

.contact-point {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  margin-top: 1.4rem;
}

.contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d5e1f1;
  color: var(--logoAccent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon.blue {
  color: var(--logoSecondary);
}

.contact-icon.pink {
  color: var(--logoAccent);
}

.contact-point:hover .contact-icon {
  background: var(--brandHoverTint), #fff;
  border-color: #bdd1ee;
  box-shadow: 0 10px 18px rgba(20, 85, 160, 0.12);
}

.contact-point h3 {
  margin: 0 0 0.2rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  font-size: 21px;
  color: #17253f;
}

.contact-point p {
  margin: 0;
}

.contact-form-card {
  border-radius: 22px;
  padding: 1.5rem;
}

.contact-form-card h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.62rem);
}

.contact-form-card p {
  font-size: 0.94rem;
}

.contact-form-card .site-form label {
  font-size: 0.88rem;
}

.contact-form-card .site-form input,
.contact-form-card .site-form textarea {
  font-size: 0.92rem;
}

.contact-form-card .site-form input::placeholder,
.contact-form-card .site-form textarea::placeholder {
  font-size: 0.9rem;
}

.contact-form-card .btn {
  font-size: 0.84rem;
  padding: 0.66rem 1.08rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brandHoverTint);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 85, 160, 0.14);
  border-color: #bfd0ea;
}

.card:hover::after {
  opacity: 0.42;
}

.two-column {
  display: grid;
  gap: 1rem;
}

.three-col {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.themes-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.theme-card {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.theme-icon {
  background: #e9f0fb;
  border: 1px solid #cad9ef;
  color: var(--brand-dark);
  min-width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.filter-btn.active {
  border-color: var(--brand);
  background: #e8effb;
  color: var(--brand-dark);
  box-shadow: 0 6px 14px rgba(20, 85, 160, 0.13);
}

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

.project-card .tags,
.project-card .status {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.project-card h3 {
  background: var(--titleGradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.project-card.hidden {
  display: none;
}

.cta-band {
  padding: 2rem 0;
  background: linear-gradient(95deg, var(--logoPrimary), var(--logoViolet) 55%, var(--logoAccent));
  color: #fff;
}

.cta-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.pi-card {
  display: grid;
  gap: 1rem;
}

.pi-card img {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.people-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.person-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 0.7rem;
}

.gallery-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: 1fr;
}

.exp-subhead {
  position: relative;
  display: inline-flex;
  justify-self: start;
  width: fit-content;
  margin: 0 0 0.45rem 0.2rem;
  padding: 0.4rem 0.95rem;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: linear-gradient(
    100deg,
    var(--logoSecondary) 8%,
    var(--logoViolet) 56%,
    var(--logoAccent) 100%
  );
  color: #fff;
  line-height: 1;
}

.exp-subhead::after {
  content: none;
}

.gallery-item {
  margin: 0;
  background: #0c2f62;
  border: 1px solid #c9d9f0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  position: relative;
  box-shadow: 0 12px 26px rgba(16, 73, 138, 0.14);
  cursor: zoom-in;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 25, 52, 0.02) 20%,
    rgba(8, 25, 52, 0.08) 100%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.24s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brandHoverTint);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
  z-index: 1;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(12, 58, 115, 0.22);
  border-color: #bdd1ee;
}

.gallery-item:hover::after {
  opacity: 0.2;
}

.gallery-item:hover::before {
  opacity: 0.35;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 0;
  transition: transform 0.7s ease;
  --gallery-zoom: 1.001;
  transform: translate3d(0, var(--photo-shift, 0px), 0) scale(var(--gallery-zoom));
  will-change: transform;
}

.gallery-item:hover img {
  --gallery-zoom: 1.07;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(180deg, rgba(6, 18, 35, 0.05) 0%, rgba(6, 18, 35, 0.86) 100%);
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1.2;
}

.gallery-item figcaption strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
}

.gallery-item figcaption span {
  display: block;
  opacity: 0.92;
}

.person-card img,
.pi-card img,
.owner-card img {
  transition: transform 0.5s ease;
  --card-zoom: 1;
  transform: translate3d(0, var(--photo-shift, 0px), 0) scale(var(--card-zoom));
  will-change: transform;
}

.person-card:hover img,
.pi-card:hover img,
.owner-card:hover img {
  --card-zoom: 1.04;
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.05rem;
  }
}

body.lightbox-open {
  overflow: hidden;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 12, 24, 0.92);
  padding: 1.2rem;
}

.photo-lightbox.open {
  display: flex;
}

.photo-lightbox-image {
  max-width: min(96vw, 1400px);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(227, 237, 255, 0.22);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.5);
}

.photo-lightbox-close,
.photo-lightbox-nav {
  position: absolute;
  border: 1px solid rgba(227, 237, 255, 0.45);
  background: rgba(8, 28, 57, 0.85);
  color: #fff;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.photo-lightbox-close {
  top: 16px;
  right: 16px;
}

.photo-lightbox-nav.prev {
  left: 18px;
}

.photo-lightbox-nav.next {
  right: 18px;
}

.photo-lightbox-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  text-align: center;
  color: #eef4ff;
  font-size: 0.95rem;
}

.news-layout {
  align-items: start;
}

.news-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  position: relative;
  overflow: hidden;
}

.news-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brandHoverTint);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
  z-index: 0;
}

.news-item > * {
  position: relative;
  z-index: 1;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(20, 85, 160, 0.13);
  border-color: #bdd1ee;
}

.news-item:hover::after {
  opacity: 0.36;
}

.news-date {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.site-form {
  display: grid;
  gap: 0.7rem;
}

.site-form label {
  font-weight: 700;
  color: #1c2740;
  font-size: 0.98rem;
}

.site-form input,
.site-form textarea {
  width: 100%;
  border: 1px solid #c5d6ef;
  border-radius: 16px;
  padding: 0.78rem 0.95rem;
  font: inherit;
  background: #fff;
}

.site-form input:focus,
.site-form textarea:focus {
  outline: 2px solid #dae7fa;
  border-color: var(--brand);
}

.form-note {
  min-height: 1.4em;
  color: var(--brand-dark);
  margin: 0;
}

.form-note.success {
  color: #0f6f49;
}

.form-note.error {
  color: #b3261e;
}

.site-footer {
  background: #2452a2;
  color: #d4e1f7;
  margin-top: 1.6rem;
}

.footer-top-line {
  height: 4px;
  background: linear-gradient(90deg, var(--logoSecondary), var(--logoViolet) 54%, var(--logoAccent));
}

.footer-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding: 1.3rem 0 0.95rem;
}

.site-footer h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.15;
  font-size: 16px;
}

.site-footer p {
  margin-bottom: 0.3rem;
  color: #d0ddf7;
  font-size: 0.82rem;
  line-height: 1.42;
}

.site-footer a {
  color: #e9f2ff;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.footer-logo-card {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 6px 12px rgba(7, 23, 53, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo-card img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.footer-links,
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.18rem;
}

.footer-links a {
  line-height: 1.2;
  letter-spacing: 0;
  word-spacing: -0.02em;
}

.footer-contact-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.36;
}

.footer-contact-list li + li {
  margin-top: 0.45rem;
}

.footer-icon {
  width: 24px;
  height: 24px;
  color: var(--logoAccent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  border-top: 1px solid rgba(223, 233, 250, 0.26);
  padding: 0.75rem 0 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem 1.2rem;
  align-items: center;
  text-align: left;
}

.footer-bottom p {
  margin: 0;
  color: rgba(227, 237, 252, 0.74);
  font-size: 0.77rem;
}

.footer-bottom p:last-child {
  margin-left: auto;
  text-align: right;
}

.note {
  color: var(--text-soft);
  background: #edf2fb;
  border-left: 3px solid var(--brand);
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
}

.stack-gap {
  display: grid;
  gap: 1rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.text-link {
  font-weight: 700;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.08rem;
    border: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
    margin-left: auto;
    margin-right: 0.58rem;
  }

  .header-linkedin {
    display: inline-flex;
    flex-shrink: 0;
  }

  .nav-dropdown {
    display: inline-flex;
    align-items: center;
  }

  .nav-dropdown-toggle {
    padding: 0.3rem 0;
  }

  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: -0.5rem;
    min-width: 210px;
    background: #fff;
    border: 1px solid #d2dff3;
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(16, 73, 138, 0.18);
    padding: 0.6rem 0.85rem;
    z-index: 20;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: grid;
  }

  .nav-dropdown-menu a {
    font-size: 0.92rem;
    padding: 0.48rem 0.2rem;
  }

  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a:focus-visible {
    color: var(--brand-dark);
  }

  .two-column {
    grid-template-columns: 1fr 1fr;
  }

  .pi-card {
    grid-template-columns: minmax(220px, 280px) 1fr;
    align-items: start;
  }
}

@media (max-width: 899px) {
  :root {
    --header-h: 84px;
  }

  .brand img {
    width: clamp(138px, 34vw, 188px);
    max-height: 68px;
  }

  .site-nav {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .hero-content {
    padding: 1.35rem 0 3.2rem;
  }

  .hero-content h1 {
    font-size: clamp(1.68rem, 5.7vw, 2.3rem);
  }

  .hero-content h2 {
    font-size: clamp(1.15rem, 4.4vw, 1.5rem);
  }

  .hero-content p {
    font-size: 0.96rem;
  }

  .section {
    padding: clamp(2.2rem, 7vw, 3.4rem) 0;
  }

  .contact-point h3 {
    font-size: 1.02rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.4rem 0 1rem;
  }

  .footer-bottom {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: clamp(1.75rem, 6.3vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.38rem, 4.9vw, 1.78rem);
  }

  h3 {
    font-size: clamp(1.12rem, 4.1vw, 1.46rem);
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1220px, 94%);
  }

  .card {
    padding: 0.9rem;
    border-radius: 14px;
  }

  .focus-grid,
  .project-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 980px) {
  .hero-premium-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 1.8rem;
  }

  .contact-premium-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-float-note {
    bottom: -1rem;
  }
}

.reveal-init {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes mediaFloatZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slide,
  .slider-dot,
  .btn,
  .card,
  .filter-btn,
  .gallery-item,
  .news-item {
    transition: none;
  }

  .slide.active::before {
    animation: none;
  }

  .gallery-item img,
  .person-card img,
  .pi-card img,
  .owner-card img {
    transition: none;
    transform: none;
  }

  .hero-media-card img {
    animation: none;
    transform: none;
  }

  .mouse-gradient-glow {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .mouse-gradient-glow {
    display: none;
  }
}
