:root {
  --ink: #182027;
  --muted: #5f6972;
  --paper: #f7f3ec;
  --white: #ffffff;
  --green: #0c704e;
  --gold: #c8942e;
  --red: #a83f35;
  --line: rgba(24, 32, 39, 0.14);
  --shadow: 0 24px 70px rgba(24, 32, 39, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(247, 243, 236, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border: 2px solid var(--gold);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a:hover {
  color: var(--green);
}

.page {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  padding: clamp(36px, 7vw, 88px);
  color: var(--white);
  background: #10171c;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: center 35%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 18, 22, 0.82) 0%, rgba(10, 18, 22, 0.54) 45%, rgba(10, 18, 22, 0.1) 100%),
    linear-gradient(0deg, rgba(10, 18, 22, 0.72) 0%, rgba(10, 18, 22, 0) 50%);
}

.hero-content {
  position: relative;
  max-width: 780px;
  padding-bottom: 36px;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 9vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  max-width: 980px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-copy {
  max-width: 660px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

.button.primary {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.button.ghost {
  color: var(--white);
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: clamp(20px, 5vw, 64px);
  width: min(300px, calc(100% - 40px));
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-panel strong {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.hero-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

section:not(.hero) {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.intro-band,
.events,
.contact {
  background: var(--white);
}

.intro-grid,
.two-column,
.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.intro-grid p,
.events p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.06rem;
}

.portrait {
  margin: 0;
}

.portrait img,
.image-stack img,
.gallery-grid img,
.contact-image {
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.portrait img {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.credentials {
  background:
    linear-gradient(90deg, rgba(12, 112, 78, 0.09), transparent 54%),
    var(--paper);
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
}

.quote-block {
  padding: clamp(28px, 5vw, 54px);
  color: var(--white);
  background: var(--green);
}

.quote-block p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1.12;
}

.services {
  background: #182027;
  color: var(--white);
}

.services h2 {
  color: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.2);
}

.service-grid article {
  min-height: 250px;
  padding: 24px;
  background: #182027;
}

.service-grid span {
  color: var(--gold);
  font-weight: 800;
}

.service-grid p {
  color: rgba(255, 255, 255, 0.74);
}

.event-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 32px;
}

.compact {
  gap: 9px;
}

.image-stack {
  display: grid;
  gap: 18px;
}

.image-stack img {
  aspect-ratio: 16 / 10;
}

.brands {
  color: var(--white);
  background: var(--green);
}

.brands .section-label {
  color: #f0c873;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.26);
}

.brand-grid > span {
  min-height: 96px;
  display: grid;
  align-items: center;
  padding: 20px;
  background: var(--green);
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.contact-image {
  aspect-ratio: 4 / 5;
}

.contact-panel {
  max-width: 820px;
}

.contact-grid {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-grid a {
  padding: 16px 18px;
  background: var(--paper);
  border-left: 4px solid var(--gold);
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 760px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 26px;
  }

  .intro-grid,
  .two-column,
  .event-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .brand-grid,
  .gallery-grid,
  .event-columns {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  html,
  body {
    width: 210mm;
    background: var(--paper);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .site-header,
  .hero-actions {
    display: none;
  }

  .page {
    min-height: 297mm;
    page-break-after: always;
  }

  .hero {
    min-height: 297mm;
    padding: 24mm;
  }

  section:not(.hero) {
    padding: 22mm;
  }

  h1 {
    font-size: 68pt;
  }

  h2 {
    font-size: 31pt;
  }

  .intro-grid,
  .two-column,
  .event-layout,
  .contact {
    grid-template-columns: 1fr 0.82fr;
    gap: 14mm;
  }

  .service-grid,
  .brand-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid article {
    min-height: 54mm;
  }

  .gallery-grid img {
    box-shadow: none;
  }

  .hero-panel,
  .portrait img,
  .image-stack img,
  .contact-image {
    box-shadow: none;
  }
}

/* Motion and clickable image layer */
.site-header {
  animation: headerDrop 700ms ease both;
}

.hero-bg {
  animation: heroDrift 18s ease-in-out infinite alternate;
  transform-origin: center;
}

.hero-content > *,
.hero-panel {
  animation: riseIn 850ms ease both;
}

.hero-content .eyebrow { animation-delay: 120ms; }
.hero-content h1 { animation-delay: 240ms; }
.hero-copy { animation-delay: 360ms; }
.hero-actions { animation-delay: 480ms; }
.hero-panel { animation-delay: 620ms; }

.button,
.contact-grid a,
.brand span,
.service-grid article {
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.button:hover,
.contact-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(24, 32, 39, 0.16);
}

.button.primary:hover {
  background: #e0ad45;
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.78);
}

.service-grid article:hover,
.brand-grid > span:hover {
  transform: translateY(-6px);
  position: relative;
  z-index: 1;
}

.service-grid article:hover {
  background: #202c34;
}

.brand-grid > span:hover {
  background: #17865f;
}

.image-button {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: inherit;
}

.image-button::after {
  content: "View";
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.image-button img {
  transition: transform 700ms ease, filter 300ms ease;
}

.image-button:hover img,
.image-button:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.image-button:hover::after,
.image-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.image-button:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.contact-image-button,
.contact-image-button .contact-image {
  aspect-ratio: 4 / 5;
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 720ms ease var(--delay, 0ms), transform 720ms ease var(--delay, 0ms);
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  background: rgba(12, 17, 21, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1120px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  transition: transform 240ms ease;
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--gold);
  color: var(--ink);
}

.lightbox-active {
  overflow: hidden;
}

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

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

@keyframes heroDrift {
  from { transform: scale(1); }
  to { transform: scale(1.07) translateX(-1.5%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .lightbox,
  .image-button::after {
    display: none;
  }

  .image-button {
    cursor: default;
  }
}

/* Logo grid */
.logo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: transparent;
}

.brand-card {
  min-height: 154px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  text-align: center;
  font-weight: 800;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.brand-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
}

.brand-card img {
  width: min(138px, 72%);
  max-height: 78px;
  object-fit: contain;
  padding: 10px;
  background: var(--white);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.brand-card span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}

.text-logo strong {
  min-width: 104px;
  min-height: 74px;
  display: inline-grid;
  place-items: center;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1;
}

.text-logo.fbnquest strong {
  color: #244f8f;
  border-bottom: 5px solid #f2b12f;
}

.text-logo.ibam strong {
  color: #111827;
  border-bottom: 5px solid var(--gold);
}

.text-logo.cowslo strong,
.text-logo.unicef strong {
  color: #1177c8;
}

.text-logo.energy strong,
.text-logo.laserc strong {
  color: var(--green);
  border-bottom: 5px solid var(--gold);
}

.son-logo img {
  width: min(150px, 78%);
}

.mercy-logo img {
  width: min(168px, 82%);
}

@media (max-width: 900px) {
  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media print {
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-card,
  .brand-card img,
  .text-logo strong {
    box-shadow: none;
  }
}

.fbnquest-logo img,
.energy-logo img {
  width: min(190px, 88%);
  max-height: 82px;
}

.cowslo-logo img,
.unicef-logo img {
  width: min(160px, 82%);
  max-height: 76px;
}

.laserc-logo img {
  width: min(118px, 70%);
  max-height: 86px;
}

/* Final brand, hero, heading, and chatbot refinements */
.brand img {
  width: 58px;
  height: 42px;
  object-fit: contain;
  padding: 3px 5px;
  background: var(--white);
  border: 1px solid rgba(200, 148, 46, 0.55);
}

.brand span {
  display: none;
}

h1 {
  font-size: clamp(3rem, 6.8vw, 6.35rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(1.75rem, 3.15vw, 3.25rem);
  line-height: 1.08;
}

.quote-block p {
  font-size: clamp(1.35rem, 2.25vw, 2.35rem);
}

.hero {
  align-items: end;
  padding-top: clamp(130px, 20vh, 210px);
  padding-bottom: clamp(30px, 5vw, 62px);
}

.hero-bg {
  object-position: center 24%;
}

.hero-content {
  max-width: 660px;
  padding-bottom: 0;
  transform: translateY(18px);
}

.hero-copy {
  max-width: 560px;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
}

.hero-panel {
  bottom: clamp(18px, 4vw, 44px);
}

.chatbot-widget {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 35;
  width: min(360px, calc(100vw - 32px));
  color: var(--ink);
}

.chatbot-toggle {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  color: var(--ink);
  background: var(--gold);
  font: inherit;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(24, 32, 39, 0.18);
  cursor: pointer;
}

.chatbot-panel {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(24, 32, 39, 0.12);
  box-shadow: 0 24px 60px rgba(24, 32, 39, 0.24);
  transform-origin: bottom right;
  transition: opacity 220ms ease, transform 220ms ease, max-height 220ms ease;
}

.chatbot-widget.is-collapsed .chatbot-panel {
  max-height: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
}

.chatbot-header {
  padding: 16px 18px;
  color: var(--white);
  background: var(--green);
}

.chatbot-header strong,
.chatbot-header span {
  display: block;
}

.chatbot-header span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

.chatbot-messages {
  display: grid;
  gap: 10px;
  max-height: 210px;
  overflow-y: auto;
  padding: 16px;
  background: var(--paper);
}

.bot-message,
.user-message {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.bot-message {
  justify-self: start;
  max-width: 88%;
  background: var(--white);
  border-left: 3px solid var(--gold);
}

.user-message {
  justify-self: end;
  max-width: 88%;
  color: var(--white);
  background: var(--green);
}

.chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.chatbot-form input,
.chatbot-form button {
  min-height: 42px;
  border: 1px solid var(--line);
  font: inherit;
}

.chatbot-form input {
  width: 100%;
  padding: 9px 10px;
  color: var(--ink);
}

.chatbot-form button {
  padding: 9px 13px;
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
  font-weight: 800;
  cursor: pointer;
}

.chatbot-toggle:focus-visible,
.chatbot-form input:focus-visible,
.chatbot-form button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .brand img {
    width: 54px;
    height: 40px;
  }

  .hero {
    min-height: 820px;
    padding-top: 250px;
    padding-bottom: 34px;
  }

  .hero-bg {
    object-position: center top;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(10, 18, 22, 0.86) 0%, rgba(10, 18, 22, 0.54) 43%, rgba(10, 18, 22, 0.04) 74%),
      linear-gradient(90deg, rgba(10, 18, 22, 0.46), rgba(10, 18, 22, 0.08));
  }

  .hero-content {
    transform: translateY(0);
    max-width: 100%;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }

  .chatbot-widget {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

@media print {
  .chatbot-widget {
    display: none;
  }
}

/* Final heading scale pass */
h1 {
  font-size: clamp(2.65rem, 5.6vw, 5.25rem);
}

h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.8rem);
}

h3 {
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  h1 {
    font-size: clamp(2.35rem, 11.5vw, 3.8rem);
  }

  h2 {
    font-size: clamp(1.42rem, 6.4vw, 2.05rem);
  }
}

/* Logo-only header and circular chat launcher */
.site-header {
  min-height: 86px;
}

.brand {
  flex: 0 0 auto;
}

.brand strong {
  display: none;
}

.brand img {
  width: clamp(112px, 12vw, 158px);
  height: 64px;
  padding: 5px 8px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(200, 148, 46, 0.7);
  box-shadow: 0 10px 24px rgba(24, 32, 39, 0.12);
}

.chatbot-widget {
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  width: min(360px, calc(100vw - 28px));
  pointer-events: none;
}

.chatbot-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 68px;
  height: 68px;
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 18px 40px rgba(24, 32, 39, 0.26);
  pointer-events: auto;
}

.chatbot-toggle span {
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.chatbot-toggle::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(200, 148, 46, 0.38);
  animation: chatPulse 1800ms ease-out infinite;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 84px;
  width: min(360px, calc(100vw - 28px));
  max-height: 520px;
  pointer-events: auto;
}

.chatbot-widget.is-collapsed .chatbot-panel {
  max-height: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
}

.chatbot-widget:not(.is-collapsed) .chatbot-toggle::before {
  animation: none;
  opacity: 0;
}

@keyframes chatPulse {
  from {
    transform: scale(0.92);
    opacity: 0.9;
  }
  to {
    transform: scale(1.22);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 82px;
  }

  .brand img {
    width: 126px;
    height: 58px;
  }

  .chatbot-widget {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }

  .chatbot-toggle {
    width: 62px;
    height: 62px;
    min-height: 62px;
  }

  .chatbot-panel {
    bottom: 78px;
    width: calc(100vw - 28px);
  }
}

/* Layout tightening, clean logo, mobile drawer menu, stronger chat motion */
.site-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
}

.brand {
  justify-self: start;
}

.brand img {
  width: clamp(150px, 15vw, 220px);
  height: 78px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 8px 18px rgba(24, 32, 39, 0.2));
}

.menu-toggle,
.menu-backdrop {
  display: none;
}

.intro-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 360px);
  gap: clamp(24px, 4vw, 50px);
}

.portrait img {
  max-height: 520px;
}

.event-layout {
  grid-template-columns: minmax(0, 1.28fr) minmax(250px, 390px);
  gap: clamp(24px, 4vw, 50px);
}

.image-stack {
  align-self: center;
}

.image-stack img {
  aspect-ratio: 16 / 9;
  max-height: 210px;
}

.contact {
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
}

.contact-image,
.contact-image-button {
  max-height: 520px;
}

.chatbot-toggle {
  animation: chatBounce 2800ms ease-in-out infinite;
}

.chatbot-toggle::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.22);
  transform: scale(0.55);
  opacity: 0;
  animation: chatInnerGlow 2200ms ease-in-out infinite;
}

.chatbot-toggle span {
  position: relative;
  z-index: 1;
}

.chatbot-widget:not(.is-collapsed) .chatbot-toggle {
  animation: none;
}

.chatbot-widget:not(.is-collapsed) .chatbot-toggle::after {
  animation: none;
}

.chatbot-panel {
  transition: opacity 260ms ease, transform 260ms ease, max-height 260ms ease;
}

@keyframes chatBounce {
  0%, 72%, 100% {
    transform: translateY(0) scale(1);
  }
  80% {
    transform: translateY(-7px) scale(1.03);
  }
  88% {
    transform: translateY(0) scale(0.98);
  }
  94% {
    transform: translateY(-3px) scale(1.01);
  }
}

@keyframes chatInnerGlow {
  0%, 64%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  78% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    min-height: 88px;
    padding: 12px 16px;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
  }

  .brand img {
    width: min(168px, 52vw);
    height: 64px;
  }

  .menu-toggle {
    grid-column: 1;
    display: grid;
    align-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: var(--white);
    cursor: pointer;
    z-index: 42;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(310px, 84vw);
    height: 100vh;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 104px 22px 24px;
    background: var(--white);
    box-shadow: 24px 0 54px rgba(24, 32, 39, 0.2);
    transform: translateX(-105%);
    transition: transform 260ms ease;
    z-index: 40;
  }

  .site-header.menu-open nav {
    transform: translateX(0);
  }

  .site-header nav a {
    padding: 17px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 800;
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(10, 18, 22, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    z-index: 38;
  }

  .site-header.menu-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .intro-grid,
  .event-layout,
  .contact {
    gap: 24px;
  }

  .portrait,
  .image-stack,
  .contact-image-button {
    width: min(100%, 360px);
    justify-self: center;
  }

  .portrait img,
  .contact-image {
    max-height: 440px;
  }

  .image-stack img {
    max-height: 190px;
  }
}

@media (max-width: 560px) {
  .portrait,
  .image-stack,
  .contact-image-button {
    width: min(100%, 320px);
  }

  .portrait img,
  .contact-image {
    max-height: 390px;
  }

  .image-stack img {
    max-height: 168px;
  }
}

/* Final visual polish requested: smaller portfolio imagery, prominent bare logo, drawer menu, noticed chat button */
.brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-decoration: none;
}

.brand img {
  width: clamp(180px, 17vw, 260px);
  height: 86px;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(24, 32, 39, 0.2));
}

.intro-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(220px, 330px);
  align-items: center;
}

.portrait {
  max-width: 330px;
  justify-self: center;
}

.portrait img {
  max-height: 455px;
}

.event-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 340px);
  align-items: center;
}

.image-stack {
  max-width: 340px;
  gap: 12px;
  justify-self: center;
}

.image-stack img {
  max-height: 165px;
}

.contact {
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  align-items: center;
}

.contact-image-button {
  width: min(100%, 330px);
  justify-self: center;
  align-self: center;
}

.contact-image,
.contact-image-button {
  max-height: 455px;
}

.chatbot-toggle {
  box-shadow: 0 14px 32px rgba(24, 32, 39, 0.26), 0 0 0 0 rgba(200, 148, 46, 0.45);
  animation: chatBounce 2600ms ease-in-out infinite, chatGlow 2600ms ease-out infinite;
}

.chatbot-toggle::before {
  animation: chatPulse 1700ms ease-out infinite;
}

.chatbot-widget:not(.is-collapsed) .chatbot-toggle {
  animation: none;
}

@keyframes chatGlow {
  0%, 100% {
    box-shadow: 0 14px 32px rgba(24, 32, 39, 0.26), 0 0 0 0 rgba(200, 148, 46, 0.45);
  }
  72% {
    box-shadow: 0 18px 38px rgba(24, 32, 39, 0.3), 0 0 0 13px rgba(200, 148, 46, 0);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
  }

  .brand img {
    width: min(210px, 58vw);
    height: 72px;
  }

  .menu-toggle {
    position: relative;
    grid-column: 1;
  }

  .site-header nav {
    width: min(320px, 86vw);
    padding-top: 112px;
  }

  .intro-grid,
  .event-layout,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait,
  .image-stack,
  .contact-image-button {
    width: min(100%, 310px);
    max-width: 310px;
  }

  .portrait img,
  .contact-image {
    max-height: 375px;
  }

  .image-stack img {
    max-height: 150px;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: min(190px, 62vw);
    height: 66px;
  }

  .portrait,
  .image-stack,
  .contact-image-button {
    width: min(100%, 288px);
    max-width: 288px;
  }

  .portrait img,
  .contact-image {
    max-height: 342px;
  }

  .image-stack img {
    max-height: 132px;
  }

  .chatbot-toggle {
    width: 66px;
    height: 66px;
    min-height: 66px;
  }
}

/* Requested adjustment: restore larger section images and move mobile menu button to top right */
.intro-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.portrait {
  max-width: none;
  justify-self: stretch;
}

.portrait img {
  max-height: none;
}

.event-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}

.image-stack {
  max-width: none;
  gap: 18px;
  justify-self: stretch;
}

.image-stack img {
  aspect-ratio: 16 / 10;
  max-height: none;
}

.contact {
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
}

.contact-image-button {
  width: 100%;
  max-height: none;
  justify-self: stretch;
}

.contact-image {
  max-height: none;
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .menu-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    grid-column: auto;
    justify-self: end;
    align-self: start;
  }

  .site-header nav {
    left: auto;
    right: 0;
    transform: translateX(105%);
    box-shadow: -24px 0 54px rgba(24, 32, 39, 0.2);
  }

  .site-header.menu-open nav {
    transform: translateX(0);
  }

  .intro-grid,
  .event-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .portrait,
  .image-stack,
  .contact-image-button {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .portrait img,
  .contact-image,
  .image-stack img {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .portrait,
  .image-stack,
  .contact-image-button {
    width: 100%;
    max-width: none;
  }

  .portrait img,
  .contact-image,
  .image-stack img {
    max-height: none;
  }
}

/* Requested adjustment: align desktop navigation to the right */
.site-header nav {
  justify-self: end;
  margin-left: auto;
}

@media (max-width: 900px) {
  .site-header nav {
    justify-self: stretch;
    margin-left: 0;
  }
}

/* Requested logo swap: fit the black-and-gold mark cleanly in the header */
.brand img {
  width: clamp(210px, 20vw, 310px);
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(24, 32, 39, 0.22));
}

@media (max-width: 900px) {
  .brand img {
    width: min(230px, 58vw);
    height: 74px;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: min(210px, 60vw);
    height: 68px;
  }
}

/* Index page loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: #000;
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.page-loader img {
  width: min(520px, 72vw);
  max-height: 42vh;
  object-fit: contain;
  animation: loaderLogoPulse 1600ms ease-in-out infinite;
  filter: drop-shadow(0 0 34px rgba(200, 148, 46, 0.32));
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.loader-active {
  overflow: hidden;
  background: #000;
}

@keyframes loaderLogoPulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 560px) {
  .page-loader img {
    width: min(330px, 78vw);
    max-height: 34vh;
  }
}
