/* ==========================================================================
   PF NEXUS GLOBAL
   pfnexusglobal.com

   A professional services firm: audit, tax, advisory and automation.
   Palette is drawn from the PF Nexus wordmark (deep navy to nexus blue),
   with gold reserved for the Kasa-bot flagship and key moments.

   Structure follows the conventions of large advisory firms: utility bar,
   mega menu, insight-led home page, service and industry hubs, and a full
   legal footer.
   ========================================================================== */

:root {
  /* Ground */
  --paper:      #ffffff;
  --mist:       #f3f6fa;
  --sky:        #e8f0fb;

  /* Brand */
  --ink:        #0a1b33;
  --ink-2:      #0f2747;
  --ink-3:      #163459;
  --nexus:      #1e5ba8;
  --nexus-deep: #0f3f7a;
  --nexus-lit:  #4f8fdc;
  --gold:       #b8862a;
  --gold-lit:   #e5b04a;

  /* Text and rules */
  --text:       #14233a;
  --mute:       #52647a;
  --soft:       #7a8a9e;
  --rule:       #dbe3ec;
  --rule-dark:  #23406a;
  --on-ink:     #e9eff7;
  --on-ink-mute:#9db0c8;

  /* WhatsApp interface */
  --wa-teal:    #008069;
  --wa-chat:    #efeae2;
  --wa-out:     #d9fdd3;
  --wa-in:      #ffffff;
  --wa-tick:    #53bdeb;
  --wa-meta:    #667781;
  --wa-link:    #027eb5;

  /* Type */
  --sans:  "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --t-xs:  .78rem;
  --t-sm:  .9rem;
  --t-md:  1.0625rem;
  --t-lg:  1.25rem;
  --t-xl:  1.625rem;
  --t-2xl: 2.25rem;
  --t-3xl: 3.25rem;
  --t-4xl: 4.25rem;

  --max: 1240px;
  --gut: clamp(1.25rem, 3vw, 2rem);
  --bay: clamp(4rem, 8vw, 6.5rem);
  --header-h: 112px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: var(--t-md); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0 0 .5em; font-family: var(--sans); color: inherit;
  line-height: 1.08; letter-spacing: -.022em; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, var(--t-4xl)); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, var(--t-3xl)); font-weight: 700; }
h3 { font-size: var(--t-xl); font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
h4 { font-size: var(--t-lg); font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }

a { color: var(--nexus); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--nexus-deep); }

:focus-visible { outline: 2px solid var(--nexus-lit); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--nexus); color: #fff; }

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

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: .8rem 1.1rem; font-weight: 600; }
.skip:focus { left: 1rem; top: 1rem; color: #fff; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.bay { padding-block: var(--bay); }
.bay--mist { background: var(--mist); }
.bay--sky { background: var(--sky); }
.bay--ink { background: var(--ink); color: var(--on-ink); }
.bay--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin: 0; max-width: 20ch; }
.section-head p { margin: .75rem 0 0; color: var(--mute); font-size: var(--t-lg); max-width: 52ch; }
.bay--ink .section-head p { color: var(--on-ink-mute); }

/* ---------- Text link with chevron ---------- */
.more {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: var(--t-sm); color: var(--nexus); text-decoration: none;
}
.more svg { width: 14px; height: 14px; transition: transform .2s ease; }
.more:hover { color: var(--nexus-deep); }
.more:hover svg { transform: translateX(3px); }
.more--light { color: #fff; }
.more--light:hover { color: var(--gold-lit); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: 2px;
  border: 1.5px solid transparent; font-weight: 600; font-size: var(--t-sm);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--nexus); color: #fff; }
.btn--primary:hover { background: var(--nexus-deep); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--sky); color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--outline-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--wa { background: #25d366; color: #0b3d1f; }
.btn--wa:hover { background: #1fbe5b; color: #0b3d1f; }
.btn--gold { background: var(--gold-lit); color: var(--ink); }
.btn--gold:hover { background: #f2c063; color: var(--ink); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 90; background: #fff; }

.utility { background: var(--ink); color: var(--on-ink-mute); font-size: var(--t-xs); }
.utility__inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 1rem; }
.utility__place { letter-spacing: .01em; }
.utility__links { display: flex; align-items: center; gap: 1.5rem; }
.utility__link { color: var(--on-ink); text-decoration: none; font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; font-size: var(--t-xs); display: inline-flex; align-items: center; gap: .4rem; }
.utility__link:hover { color: var(--gold-lit); }
.utility__link svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .utility__place, .utility__hide-sm { display: none; } .utility__inner { justify-content: flex-end; } }

.mainbar { border-bottom: 1px solid var(--rule); position: relative; }
.mainbar__inner { display: flex; align-items: center; min-height: 76px; gap: 2rem; }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { height: 36px; width: auto; }

.nav { display: flex; align-items: stretch; align-self: stretch; gap: .25rem; }
.nav__item { display: flex; align-items: stretch; }
.nav__trigger, .nav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: 0 .9rem; background: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: .95rem; color: var(--text); text-decoration: none;
  box-shadow: inset 0 -3px 0 transparent; transition: box-shadow .15s ease, color .15s ease;
}
.nav__trigger svg { width: 12px; height: 12px; transition: transform .2s ease; }
.nav__trigger:hover, .nav__link:hover { color: var(--nexus); }
.nav__trigger[aria-expanded="true"] { color: var(--nexus); box-shadow: inset 0 -3px 0 var(--nexus); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__link[aria-current="page"], .nav__trigger.is-current { box-shadow: inset 0 -3px 0 var(--gold-lit); }

.mainbar__cta { flex: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--rule); width: 44px; height: 44px; border-radius: 2px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1080px) {
  .nav, .mainbar__cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Mega menu panels */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--rule);
  box-shadow: 0 24px 48px -24px rgba(10, 27, 51, .28);
  display: none;
}
.mega.is-open { display: block; animation: megaIn .18s ease-out; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.mega__inner { display: grid; grid-template-columns: 1fr 2fr 1.1fr; gap: 3rem; padding-block: 2.5rem 3rem; }
.mega__intro h3 { font-size: var(--t-xl); margin-bottom: .6rem; }
.mega__intro p { color: var(--mute); font-size: var(--t-sm); }
.mega__links { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 2rem; list-style: none; align-content: start; }
.mega__links a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--text); }
.mega__links a:hover { color: var(--nexus); }
.mega__links b { display: block; font-weight: 600; font-size: .98rem; }
.mega__links span { display: block; color: var(--soft); font-size: var(--t-xs); margin-top: .15rem; line-height: 1.45; }
.mega__feature { background: var(--mist); padding: 1.25rem; display: block; text-decoration: none; color: var(--text); }
.mega__feature:hover { color: var(--text); }
.mega__feature:hover .mega__feature-title { color: var(--nexus); }
.mega__feature-art { aspect-ratio: 16/9; overflow: hidden; margin-bottom: 1rem; background: var(--ink); }
.mega__feature-art svg { width: 100%; height: 100%; }
.mega__feature-kind { font-size: var(--t-xs); font-weight: 600; color: var(--nexus); margin-bottom: .35rem; }
.mega__feature-title { font-weight: 650; font-size: 1.02rem; line-height: 1.35; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 120; background: #fff;
  display: none; flex-direction: column; overflow-y: auto;
}
.drawer.is-open { display: flex; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding-inline: var(--gut); border-bottom: 1px solid var(--rule); }
.drawer__top img { height: 32px; width: auto; }
.drawer__close { background: none; border: 1px solid var(--rule); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 2px; }
.drawer__close svg { width: 18px; height: 18px; }
.drawer__body { padding: .5rem var(--gut) 2rem; }
.drawer details { border-bottom: 1px solid var(--rule); }
.drawer summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; font-weight: 650; font-size: var(--t-lg); cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 14px; height: 14px; transition: transform .2s ease; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details ul { list-style: none; padding-bottom: 1rem; }
.drawer details a, .drawer__plain { display: block; padding: .6rem 0; color: var(--text); text-decoration: none; }
.drawer details a { color: var(--mute); }
.drawer__plain { font-weight: 650; font-size: var(--t-lg); padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.drawer__actions { display: grid; gap: .75rem; margin-top: 1.75rem; }

/* Search overlay */
.search {
  position: fixed; inset: 0; z-index: 130; background: rgba(10, 27, 51, .72);
  display: none; align-items: flex-start; justify-content: center; padding: 10vh var(--gut) 2rem;
}
.search.is-open { display: flex; }
.search__panel { width: min(100%, 760px); background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.search__bar { display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem; border-bottom: 1px solid var(--rule); }
.search__bar svg { width: 20px; height: 20px; color: var(--soft); flex: none; }
.search__bar input { flex: 1; border: 0; outline: none; font: inherit; font-size: var(--t-lg); padding: 1.15rem 0; color: var(--text); background: transparent; }
.search__close { background: none; border: 0; cursor: pointer; font-size: var(--t-xs); color: var(--mute); padding: .4rem .6rem; border: 1px solid var(--rule); border-radius: 2px; }
.search__results { list-style: none; max-height: 56vh; overflow-y: auto; }
.search__results a { display: block; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--text); }
.search__results a:hover, .search__results a:focus { background: var(--mist); outline: none; }
.search__results b { display: block; font-weight: 600; }
.search__results span { display: block; color: var(--soft); font-size: var(--t-sm); }
.search__results small { color: var(--nexus); font-weight: 600; font-size: var(--t-xs); }
.search__empty { padding: 1.25rem; color: var(--mute); font-size: var(--t-sm); }

/* ==========================================================================
   HERO (home)
   ========================================================================== */
.hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: 1.25rem; }
.hero__lede { font-size: clamp(var(--t-md), 1.6vw, var(--t-lg)); color: var(--on-ink-mute); max-width: 46ch; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; }
}

/* Quick paths: three plain-language entry points */
.paths { border-top: 1px solid var(--rule-dark); }
.paths__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.path { display: block; padding: 1.6rem 2rem 1.75rem 0; text-decoration: none; color: var(--on-ink); border-left: 1px solid var(--rule-dark); padding-left: 2rem; }
.path:first-child { border-left: 0; padding-left: 0; }
.path:hover { color: #fff; }
.path:hover .path__q { color: var(--gold-lit); }
.path__q { display: block; font-weight: 650; font-size: var(--t-lg); line-height: 1.3; margin-bottom: .35rem; transition: color .15s ease; }
.path__a { display: inline-flex; align-items: center; gap: .4rem; color: var(--on-ink-mute); font-size: var(--t-sm); }
.path__a svg { width: 13px; height: 13px; }
@media (max-width: 820px) {
  .paths__grid { grid-template-columns: 1fr; }
  .path, .path:first-child { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-dark); padding-block: 1.25rem; }
  .path:first-child { border-top: 0; }
}

/* ==========================================================================
   PAGE HERO (interior pages)
   ========================================================================== */
.phero { background: var(--ink); color: var(--on-ink); overflow: hidden; }
.phero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.phero h1 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 3.6rem); max-width: 18ch; }
.phero__lede { font-size: var(--t-lg); color: var(--on-ink-mute); max-width: 52ch; }
.phero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.phero__art svg { width: 100%; height: auto; }
.phero--plain .phero__grid { grid-template-columns: 1fr; }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } .phero__art { display: none; } }

.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--t-xs); color: var(--on-ink-mute); margin-bottom: 1.5rem; }
.crumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.crumbs li + li::before { content: "/"; color: var(--rule-dark); }
.crumbs a { color: var(--on-ink); text-decoration: none; }
.crumbs a:hover { color: var(--gold-lit); }

/* ==========================================================================
   CARDS
   ========================================================================== */

/* Insight cards */
.insights-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.5rem; }
.insights-grid__list { display: grid; gap: 0; align-content: start; }
@media (max-width: 920px) { .insights-grid { grid-template-columns: 1fr; } }

.icard { display: block; text-decoration: none; color: var(--text); }
.icard:hover { color: var(--text); }
.icard:hover .icard__title { color: var(--nexus); }
.icard__art { aspect-ratio: 16/9; overflow: hidden; background: var(--ink); margin-bottom: 1.25rem; }
.icard__art svg { width: 100%; height: 100%; transition: transform .4s ease; }
.icard:hover .icard__art svg { transform: scale(1.03); }
.icard__kind { display: block; font-size: var(--t-xs); font-weight: 650; color: var(--nexus); margin-bottom: .5rem; }
.icard__title { display: block; font-size: var(--t-xl); font-weight: 650; line-height: 1.22; letter-spacing: -.015em; margin-bottom: .6rem; transition: color .15s ease; }
.icard__sum { display: block; color: var(--mute); font-size: var(--t-md); }
.icard__meta { display: block; color: var(--soft); font-size: var(--t-xs); margin-top: .85rem; }

.icard--row { display: grid; grid-template-columns: 148px 1fr; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.icard--row:first-child { border-top: 0; padding-top: 0; }
.icard--row .icard__art { margin: 0; aspect-ratio: 4/3; }
.icard--row .icard__title { font-size: var(--t-lg); margin-bottom: .3rem; }
.icard--row .icard__sum { display: none; }
@media (max-width: 520px) { .icard--row { grid-template-columns: 104px 1fr; } }

.icard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
@media (max-width: 980px) { .icard-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .icard-grid { grid-template-columns: 1fr; } }

/* Service cards */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1080px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

.scard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); text-decoration: none; color: var(--text); transition: border-color .18s ease, box-shadow .18s ease; }
.scard:hover { color: var(--text); border-color: var(--nexus); box-shadow: 0 18px 40px -26px rgba(15, 63, 122, .45); }
.scard__art { aspect-ratio: 2/1; background: var(--sky); overflow: hidden; }
.scard__art svg { width: 100%; height: 100%; }
.scard__body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.scard__title { font-size: var(--t-xl); font-weight: 650; letter-spacing: -.015em; line-height: 1.2; margin-bottom: .55rem; }
.scard__text { color: var(--mute); font-size: var(--t-sm); margin-bottom: 1.25rem; }
.scard .more { margin-top: auto; }

/* Industry tiles */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media (max-width: 960px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ind-grid { grid-template-columns: 1fr; } }
.itile { display: flex; flex-direction: column; gap: .5rem; padding: 2rem 1.75rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--text); background: #fff; transition: background-color .18s ease; min-height: 220px; }
.itile:hover { background: var(--sky); color: var(--text); }
.itile__icon { width: 40px; height: 40px; color: var(--nexus); margin-bottom: .75rem; }
.itile__title { font-weight: 650; font-size: var(--t-lg); line-height: 1.3; }
.itile__text { color: var(--mute); font-size: var(--t-sm); }
.itile .more { margin-top: auto; padding-top: .75rem; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* Two practices statement */
.practices { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); }
@media (max-width: 860px) { .practices { grid-template-columns: 1fr; } }
.practice { padding: 2.5rem 3rem 2.5rem 0; }
.practice + .practice { padding: 2.5rem 0 2.5rem 3rem; border-left: 1px solid var(--rule); }
@media (max-width: 860px) { .practice, .practice + .practice { padding: 2rem 0; border-left: 0; } .practice + .practice { border-top: 1px solid var(--rule); } }
.practice__label { font-size: var(--t-sm); font-weight: 650; color: var(--nexus); margin-bottom: .5rem; }
.practice--auto .practice__label { color: var(--gold); }
.practice h3 { font-size: var(--t-2xl); font-weight: 700; margin-bottom: .75rem; }
.practice p { color: var(--mute); }
.ticks { list-style: none; margin-top: 1.25rem; }
.ticks li { position: relative; padding: .6rem 0 .6rem 1.75rem; border-top: 1px solid var(--rule); font-size: var(--t-sm); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 10px; height: 6px; border-left: 2px solid var(--nexus); border-bottom: 2px solid var(--nexus); transform: rotate(-45deg); }

/* Flagship band (Kasa-bot) */
.flagship { background: var(--ink); color: var(--on-ink); overflow: hidden; position: relative; }
.flagship__grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (max-width: 960px) { .flagship__grid { grid-template-columns: 1fr; } }
.flagship h2 { color: #fff; }
.flagship__badge { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.flagship__badge img { width: 64px; height: 64px; }
.flagship__badge span { font-size: var(--t-sm); color: var(--gold-lit); font-weight: 600; }
.flagship__lede { font-size: var(--t-lg); color: var(--on-ink-mute); max-width: 46ch; }
.flagship__list { list-style: none; margin: 1.75rem 0 2.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; max-width: 560px; }
.flagship__list li { padding: .75rem 0; border-top: 1px solid var(--rule-dark); font-size: var(--t-sm); color: var(--on-ink); }
@media (max-width: 520px) { .flagship__list { grid-template-columns: 1fr; } }
.flagship__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.flagship__phone { justify-self: center; }

/* RFP banner */
.rfp { background: var(--nexus); color: #fff; }
.rfp__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding-block: clamp(2.75rem, 5vw, 3.75rem); }
.rfp h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .5rem; max-width: 26ch; }
.rfp p { color: rgba(255,255,255,.85); margin: 0; }
.rfp__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 820px) { .rfp__inner { grid-template-columns: 1fr; } }

/* Offerings list on service pages */
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; border-top: 1px solid var(--rule); }
@media (max-width: 820px) { .offer-grid { grid-template-columns: 1fr; } }
.offer { padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.offer h3 { margin-bottom: .6rem; }
.offer p { color: var(--mute); margin: 0; }

/* Split: text left, aside right */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.aside-card { background: var(--mist); padding: 2rem; border-top: 3px solid var(--nexus); }
.aside-card h3 { font-size: var(--t-lg); }
.aside-card p { color: var(--mute); font-size: var(--t-sm); }
.aside-card--gold { border-top-color: var(--gold-lit); }

/* Numbered process: only used where the content is a real sequence */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; border-top: 1px solid var(--rule); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; padding: 1.75rem 1.75rem 1.75rem 0; }
.step + .step { padding-left: 1.75rem; border-left: 1px solid var(--rule); }
@media (max-width: 900px) { .step, .step + .step { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--rule); } }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-size: var(--t-2xl); font-weight: 700; color: var(--nexus); line-height: 1; margin-bottom: .9rem; letter-spacing: -.03em; }
.step h4 { margin-bottom: .4rem; }
.step p { color: var(--mute); font-size: var(--t-sm); margin: 0; }
.bay--ink .step::before { color: var(--gold-lit); }
.bay--ink .step p { color: var(--on-ink-mute); }
.bay--ink .steps, .bay--ink .step + .step { border-color: var(--rule-dark); }

/* FAQ */
.faq { border-top: 1px solid var(--rule); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; font-weight: 650; font-size: var(--t-lg); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--nexus); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq__a { padding: 0 0 1.5rem; color: var(--mute); }
.faq__a p:last-child { margin-bottom: 0; }

/* Tier ledger (Kasa-bot) */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); }
@media (max-width: 1000px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }
.tier { padding: 2rem 1.75rem; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.tier:last-child { border-right: 0; }
@media (max-width: 1000px) { .tier:nth-child(2) { border-right: 0; } .tier:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } }
@media (max-width: 560px) { .tier { border-right: 0; border-bottom: 1px solid var(--rule); } .tier:last-child { border-bottom: 0; } }
.tier__step { font-size: var(--t-xs); font-weight: 650; color: var(--gold); margin-bottom: .75rem; }
.tier h3 { font-size: var(--t-2xl); margin-bottom: .5rem; }
.tier p { color: var(--mute); font-size: var(--t-sm); }
.tier .ticks { margin-top: auto; }

/* Case notes */
.cases { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } }
.case { padding: 2.25rem 2.5rem 2.25rem 0; border-bottom: 1px solid var(--rule); }
.case:nth-child(even) { padding: 2.25rem 0 2.25rem 2.5rem; border-left: 1px solid var(--rule); }
@media (max-width: 860px) { .case, .case:nth-child(even) { padding: 2rem 0; border-left: 0; } }
.case__kind { font-size: var(--t-xs); font-weight: 650; color: var(--nexus); margin-bottom: .6rem; }
.case h3 { font-size: var(--t-xl); margin-bottom: .6rem; }
.case p { color: var(--mute); font-size: var(--t-sm); }
.case dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: var(--t-sm); }
.case dt { color: var(--soft); }
.case dd { margin: 0; }

/* Stack tags */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { border: 1px solid var(--rule); padding: .4rem .9rem; font-size: var(--t-sm); color: var(--mute); border-radius: 2px; }

/* Industry detail blocks */
.ind-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); padding-block: 3rem; border-top: 1px solid var(--rule); }
.ind-block:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 860px) { .ind-block { grid-template-columns: 1fr; gap: 1.5rem; } }
.ind-block__icon { width: 48px; height: 48px; color: var(--nexus); margin-bottom: 1.25rem; }
.ind-block h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.ind-block__lede { color: var(--mute); font-size: var(--t-lg); }
.ind-block h4 { font-size: var(--t-md); margin-bottom: .75rem; }
.ind-block__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 560px) { .ind-block__cols { grid-template-columns: 1fr; } }
.dash-list { list-style: none; }
.dash-list li { padding: .55rem 0; border-top: 1px solid var(--rule); font-size: var(--t-sm); color: var(--text); }
.ind-block__links { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; margin-top: 1.5rem; }

/* ==========================================================================
   ARTICLE (insights)
   ========================================================================== */
.ahero { background: var(--ink); color: var(--on-ink); }
.ahero__inner { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem); max-width: 900px; }
.ahero__kind { display: inline-block; font-size: var(--t-xs); font-weight: 650; color: var(--gold-lit); margin-bottom: 1rem; }
.ahero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 24ch; }
.ahero__dek { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--on-ink-mute); line-height: 1.5; max-width: 52ch; }
.ahero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--on-ink-mute); font-size: var(--t-sm); margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule-dark); }
.ahero__meta b { color: var(--on-ink); font-weight: 600; }
.article-art { background: var(--ink); }
.article-art .wrap { max-width: 1040px; }
.article-art svg { width: 100%; height: auto; display: block; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 980px) { .article { grid-template-columns: 1fr; } }
.prose { font-family: var(--serif); font-size: 1.15rem; line-height: 1.75; color: #1d2a3d; max-width: 68ch; }
.prose p { max-width: none; margin-bottom: 1.3em; }
.prose h2 { font-family: var(--sans); font-size: clamp(1.5rem, 2.4vw, 1.85rem); margin: 2.25em 0 .7em; color: var(--text); }
.prose h3 { font-family: var(--sans); font-size: var(--t-lg); margin: 1.8em 0 .5em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--nexus); }
.prose blockquote { margin: 2em 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--gold-lit); font-size: 1.3rem; line-height: 1.5; color: var(--text); }
.note { font-family: var(--sans); font-size: var(--t-sm); color: var(--mute); background: var(--mist); padding: 1.25rem 1.5rem; border-left: 3px solid var(--nexus); line-height: 1.6; margin-top: 2.5rem; }

.article__aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: grid; gap: 1.5rem; }
@media (max-width: 980px) { .article__aside { position: static; } }
.article__aside h4 { font-size: var(--t-sm); margin-bottom: .75rem; }
.article__aside ul { list-style: none; }
.article__aside li a { display: block; padding: .5rem 0; border-top: 1px solid var(--rule); font-size: var(--t-sm); text-decoration: none; color: var(--mute); }
.article__aside li a:hover { color: var(--nexus); }

/* Insights hub filter */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filter { border: 1px solid var(--rule); background: #fff; padding: .55rem 1.1rem; border-radius: 999px; font-size: var(--t-sm); font-weight: 600; color: var(--mute); cursor: pointer; }
.filter:hover { border-color: var(--nexus); color: var(--nexus); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2.5rem, 6vw, 5rem); }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid > *, .split > *, .foot__contact > * { min-width: 0; }
.reach b, .foot__contact a { overflow-wrap: anywhere; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field label small { font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t-md); color: var(--text); background: #fff;
  border: 1px solid #c3cfdc; border-radius: 2px; padding: .8rem .95rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--nexus); box-shadow: 0 0 0 3px rgba(30, 91, 168, .15); }
.field__hint { font-size: var(--t-xs); color: var(--soft); }
.form__consent { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--mute); margin: 0; }
.form__status { grid-column: 1 / -1; padding: 1rem 1.25rem; font-size: var(--t-sm); display: none; }
.form__status.is-ok { display: block; background: #e7f6ee; color: #135c36; border-left: 3px solid #1f9d5a; }
.form__status.is-err { display: block; background: #fdecec; color: #8a1f1f; border-left: 3px solid #c43b3b; }

.reach { border-top: 1px solid var(--rule); }
.reach a, .reach div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--text); }
.reach a:hover b { color: var(--nexus); }
.reach span { font-size: var(--t-xs); color: var(--soft); padding-top: .2rem; }
.reach b { font-weight: 600; }

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal { max-width: 760px; padding-block: clamp(3rem, 6vw, 4.5rem); }
.legal h2 { font-size: var(--t-xl); margin-top: 2.25rem; }
.legal p, .legal li { color: #2a3a50; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1em; }
.legal li { margin-bottom: .4rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { background: var(--ink); color: var(--on-ink-mute); font-size: var(--t-sm); }
.foot__top { display: grid; grid-template-columns: 1.3fr 2.7fr; gap: 3rem; padding-block: 4rem 3rem; border-bottom: 1px solid var(--rule-dark); }
@media (max-width: 960px) { .foot__top { grid-template-columns: 1fr; } }
.foot__brand img { height: 38px; width: auto; margin-bottom: 1.25rem; }
.foot__brand p { color: var(--on-ink-mute); max-width: 34ch; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 760px) { .foot__cols { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-size: var(--t-sm); color: #fff; margin-bottom: 1rem; font-weight: 650; }
.foot ul { list-style: none; }
.foot li { margin-bottom: .6rem; }
.foot a { color: var(--on-ink-mute); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot__contact { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1rem 3rem; padding-block: 2rem; border-bottom: 1px solid var(--rule-dark); }
@media (max-width: 860px) { .foot__contact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot__contact { grid-template-columns: 1fr; } }
.foot__contact span { display: block; font-size: var(--t-xs); color: #7d93ad; margin-bottom: .2rem; }
.foot__contact a, .foot__contact b { color: var(--on-ink); font-weight: 600; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.75rem 2.25rem; font-size: var(--t-xs); color: #7d93ad; }
.foot__legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; }
.foot__legal li { margin: 0; }
.foot__disclaimer { flex-basis: 100%; max-width: 110ch; line-height: 1.6; margin: 0; }

/* ==========================================================================
   WHATSAPP PHONE
   An illustration of the channel Kasa-bot runs on: device frame,
   status bar, chat header, wallpaper, bubbles, delivery ticks and an
   interactive payment button.
   ========================================================================== */
.phone {
  --phone-w: 340px;
  width: var(--phone-w); max-width: 100%;
  background: #0c0e11; border-radius: 46px; padding: 11px;
  box-shadow: 0 0 0 1.5px #2b3038, 0 40px 80px -30px rgba(0,0,0,.65), 0 20px 40px -24px rgba(0,0,0,.5);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #0c0e11; border-radius: 20px; z-index: 3;
}
.phone__screen {
  border-radius: 36px; overflow: hidden; background: var(--wa-chat);
  display: flex; flex-direction: column; height: 660px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111b21;
}

.wa-status { background: var(--wa-teal); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 6px; font-size: 13px; font-weight: 600; min-height: 46px; }
.wa-status__icons { display: flex; gap: 5px; align-items: center; }
.wa-status__icons svg { height: 11px; width: auto; }

.wa-head { background: var(--wa-teal); color: #fff; display: flex; align-items: center; gap: 8px; padding: 6px 12px 10px 8px; }
.wa-head svg { width: 20px; height: 20px; flex: none; }
.wa-head__avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; background: #0a1b33; overflow: hidden; }
.wa-head__avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-head__who { flex: 1; min-width: 0; line-height: 1.2; }
.wa-head__name { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-head__sub { display: block; font-size: 12.5px; opacity: .85; }
.wa-head__tools { display: flex; gap: 18px; padding-right: 4px; }

.wa-chat {
  flex: 1; overflow-y: auto; padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 3px;
  background-color: var(--wa-chat);
  background-image: url("wa-wallpaper.svg");
  background-size: 260px 260px;
  scroll-behavior: smooth; scrollbar-width: none;
}
.wa-chat::-webkit-scrollbar { display: none; }
.wa-chat > * { flex-shrink: 0; }

.wa-day { align-self: center; background: #fff; color: var(--wa-meta); font-size: 12px; padding: 5px 12px; border-radius: 8px; box-shadow: 0 1px .5px rgba(11,20,26,.13); margin: 4px 0 6px; }
.wa-sys { align-self: center; background: #ffeecd; color: #54656f; font-size: 11.5px; line-height: 1.4; text-align: center; padding: 6px 10px; border-radius: 8px; max-width: 88%; margin-bottom: 8px; box-shadow: 0 1px .5px rgba(11,20,26,.13); }

.wa-msg {
  position: relative; max-width: 82%; padding: 6px 9px 8px; font-size: 14.2px; line-height: 1.38;
  border-radius: 8px; box-shadow: 0 1px .5px rgba(11,20,26,.13); word-wrap: break-word;
}
.wa-msg + .wa-msg--in, .wa-msg + .wa-msg--out { margin-top: 2px; }
.wa-msg--in { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 0; }
.wa-msg--out { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 0; }
.wa-msg--in.wa-tail::before, .wa-msg--out.wa-tail::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; }
.wa-msg--in.wa-tail::before { left: -8px; background: linear-gradient(to bottom left, var(--wa-in) 50%, transparent 50%); }
.wa-msg--out.wa-tail::before { right: -8px; background: linear-gradient(to bottom right, var(--wa-out) 50%, transparent 50%); }
.wa-msg:not(.wa-tail) { border-radius: 8px; }
.wa-gap { margin-top: 8px !important; }

.wa-msg__meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 6px 0 -4px 10px; font-size: 11px; color: var(--wa-meta); line-height: 1; }
.wa-msg__meta svg { width: 16px; height: 11px; color: var(--wa-tick); }
.wa-msg b { font-weight: 600; }
.wa-line { display: flex; justify-content: space-between; gap: 14px; }
.wa-sep { border-top: 1px solid #e9edef; margin: 5px 0; }

.wa-card { padding-bottom: 0; overflow: hidden; }
.wa-card .wa-msg__meta { margin-bottom: 4px; }
.wa-card__btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px -9px 0; padding: 10px; border-top: 1px solid #e9edef; color: var(--wa-link); font-size: 14px; font-weight: 500; clear: both; }
.wa-card__btn svg { width: 16px; height: 16px; }

.wa-typing { align-self: flex-start; background: var(--wa-in); border-radius: 8px; border-top-left-radius: 0; padding: 11px 13px; display: flex; gap: 4px; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: waBob 1.2s ease-in-out infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; }
.wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes waBob { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }

.wa-input { display: flex; align-items: center; gap: 6px; padding: 6px 8px 14px; background: transparent; }
.wa-input__field { flex: 1; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 24px; padding: 10px 12px; color: #8696a0; font-size: 15px; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa-input__field span { flex: 1; }
.wa-input__field svg { width: 22px; height: 22px; color: #8696a0; flex: none; }
.wa-mic { width: 46px; height: 46px; border-radius: 50%; background: #00a884; display: grid; place-items: center; flex: none; }
.wa-mic svg { width: 22px; height: 22px; color: #fff; }

.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.phone-replay { background: none; border: 1px solid var(--rule-dark); color: var(--on-ink-mute); font-size: var(--t-xs); padding: .45rem .9rem; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.phone-replay:hover { color: #fff; border-color: var(--on-ink-mute); }
.phone-replay svg { width: 13px; height: 13px; }
.phone-caption { font-size: var(--t-xs); color: var(--on-ink-mute); text-align: center; max-width: 34ch; }

@media (max-width: 420px) {
  .phone { --phone-w: 100%; border-radius: 38px; padding: 9px; }
  .phone__screen { border-radius: 30px; height: 600px; }
}

/* ---------- Utilities ---------- */
.lede { font-size: var(--t-lg); color: var(--mute); max-width: 60ch; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.center p { margin-inline: auto; }
.lost { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.lost p { margin-inline: auto; }
.lost .hero__actions { justify-content: center; }

/* ==========================================================================
   PHOTOGRAPHY
   ========================================================================== */
.scard__art img, .icard__art img, .mega__feature-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.icard__art img { transition: transform .4s ease; }
.icard:hover .icard__art img { transform: scale(1.03); }

.hero__photo, .phero__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.6); }
.phero__photo { aspect-ratio: 5 / 4; }
@media (max-width: 960px) { .hero__photo { aspect-ratio: 16 / 10; } }

.article-art { background: var(--ink); }
.article-art__img { width: 100%; aspect-ratio: 1040 / 360; object-fit: cover; display: block; }

.photo-band { width: 100%; }
.photo-band__img { width: 100%; aspect-ratio: 24 / 7; object-fit: cover; display: block; }
@media (max-width: 700px) { .photo-band__img { aspect-ratio: 16 / 10; } }

/* ==========================================================================
   CHAT WIDGET  (Adjoa)
   ========================================================================== */
.chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 95;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--nexus); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(15, 63, 122, .6);
  transition: background-color .18s ease, transform .18s ease;
}
.chat-launch:hover { background: var(--nexus-deep); transform: translateY(-2px); }
.chat-launch svg { width: 26px; height: 26px; }
.chat-launch__close { display: none; }
.chat-launch.is-open .chat-launch__open { display: none; }
.chat-launch.is-open .chat-launch__close { display: block; }
.chat-launch__dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #25d366; border: 2px solid #fff; }
.chat-launch.is-open .chat-launch__dot { display: none; }

.chat-panel {
  position: fixed; right: 20px; bottom: 92px; z-index: 95;
  width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 16px; overflow: hidden;
  display: none; flex-direction: column;
  box-shadow: 0 30px 70px -20px rgba(10, 27, 51, .5); border: 1px solid var(--rule);
}
.chat-panel.is-open { display: flex; animation: chatIn .22s ease-out; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.chat-head { background: var(--ink); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.chat-head__avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--nexus); display: grid; place-items: center; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: #fff; }
.chat-head__who { flex: 1; line-height: 1.25; }
.chat-head__name { display: block; font-weight: 650; font-size: 1.02rem; }
.chat-head__sub { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--on-ink-mute); }
.chat-head__sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #25d366; }
.chat-head__min { background: none; border: 0; color: var(--on-ink-mute); cursor: pointer; padding: 4px; }
.chat-head__min:hover { color: #fff; }
.chat-head__min svg { width: 20px; height: 20px; }

.chat-log { flex: 1; overflow-y: auto; padding: 16px; background: var(--mist); display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.chat-bubble { max-width: 84%; padding: 10px 13px; font-size: .95rem; line-height: 1.45; border-radius: 14px; word-wrap: break-word; white-space: pre-wrap; }
.chat-bubble--bot { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--rule); border-bottom-left-radius: 4px; }
.chat-bubble--me { align-self: flex-end; background: var(--nexus); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble a { color: inherit; text-decoration: underline; }
.chat-typing { align-self: flex-start; background: #fff; border: 1px solid var(--rule); border-radius: 14px; border-bottom-left-radius: 4px; padding: 13px 15px; display: flex; gap: 4px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); animation: waBob 1.2s ease-in-out infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }

.chat-foot { padding: 10px; border-top: 1px solid var(--rule); background: #fff; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; }
.chat-form textarea { flex: 1; resize: none; border: 1px solid var(--rule); border-radius: 20px; padding: 10px 14px; font: inherit; font-size: .95rem; max-height: 96px; line-height: 1.4; }
.chat-form textarea:focus { outline: none; border-color: var(--nexus); }
.chat-send { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--nexus); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-send:hover { background: var(--nexus-deep); }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-send svg { width: 20px; height: 20px; }
.chat-note { text-align: center; font-size: var(--t-xs); color: var(--soft); margin: 6px 0 0; }
.chat-note a { color: var(--nexus); }

@media (max-width: 480px) {
  .chat-panel { right: 10px; left: 10px; width: auto; bottom: 84px; height: calc(100vh - 150px); }
  .chat-launch { right: 16px; bottom: 16px; }
}

.chat-time { display: block; font-size: 10.5px; margin-top: 4px; text-align: right; line-height: 1; }
.chat-bubble--me .chat-time { color: rgba(255,255,255,.72); }
.chat-bubble--bot .chat-time { color: var(--soft); }
