:root {
  --ink: #0b1a33;
  --ink-soft: #33415c;
  --muted: #5b6678;
  --night: #071328;
  --night-2: #0c1f3d;
  --paper: #f6f4ef;
  --surface: #ffffff;
  --line: #e4e2dc;
  --line-dark: rgba(255, 255, 255, 0.1);
  --accent: #1f5f8b;
  --accent-soft: #e8f0f6;
  --gold: #c9a66b;
  --gold-deep: #8a6a35;
  --on-dark: #eef1f6;
  --on-dark-soft: #bcc7d8;
  --focus: #e0a43a;
  --error: #a3261b;
  --ok: #1d6b45;
  --radius: 18px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow:
    0 1px 2px rgba(11, 26, 51, 0.04), 0 12px 32px -12px rgba(11, 26, 51, 0.14);
  --shadow-lift:
    0 2px 4px rgba(11, 26, 51, 0.05), 0 24px 48px -16px rgba(11, 26, 51, 0.22);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --brand: "Josefin Sans", var(--sans);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--gold);
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(1.8rem, 3.3vw, 2.75rem);
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
p {
  margin: 0 0 1em;
}
.lede {
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 60ch;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 0.78rem/1 var(--brand);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 20;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: clamp(72px, 10vw, 136px) 0;
}
.section--white {
  background: var(--surface);
}
.section--ink {
  position: relative;
  background:
    radial-gradient(
      60% 80% at 85% 0%,
      rgba(75, 140, 200, 0.18),
      transparent 70%
    ),
    radial-gradient(
      50% 60% at 0% 100%,
      rgba(201, 166, 107, 0.1),
      transparent 70%
    ),
    var(--night);
  color: var(--on-dark);
}
.section--ink h2,
.section--ink h3 {
  color: #fff;
}
.section--ink .lede,
.section--ink p {
  color: var(--on-dark-soft);
}
.section--ink .eyebrow {
  color: var(--gold);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 19, 40, 0.96);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand:hover {
  color: #fff;
}
.brand-mark {
  width: 46px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(140, 186, 236, 0.35));
}
.brand-name {
  font: 600 1.02rem/1.1 var(--brand);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  position: relative;
  color: var(--on-dark-soft);
  text-decoration: none;
  padding: 10px 14px;
  font-size: 0.94rem;
  transition: color 0.2s var(--ease);
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: #fff;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav .btn {
  margin-left: 12px;
}
.nav-toggle {
  display: none;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 0.95rem;
    color: #fff;
    cursor: pointer;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    flex-direction: column;
    align-items: stretch;
    background: var(--night);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px 24px 24px;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav a:not(.btn)::after {
    display: none;
  }
  .nav .btn {
    margin: 16px 0 0;
    border-bottom: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(31, 95, 139, 0.6);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(11, 26, 51, 0.3);
}
.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: none;
}

/* Buttons on dark surfaces */
.hero .btn,
.page-hero .btn,
.section--ink .btn,
.nav .btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.hero .btn:hover,
.page-hero .btn:hover,
.section--ink .btn:hover,
.nav .btn:hover {
  background: #e2c48f;
  border-color: #e2c48f;
  color: var(--ink);
  box-shadow: 0 12px 28px -12px rgba(201, 166, 107, 0.7);
}
.hero .btn--ghost,
.page-hero .btn--ghost,
.section--ink .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover,
.section--ink .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
  box-shadow: none;
}
.nav .btn {
  min-height: 44px;
  padding: 0 22px;
  font-size: 0.92rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.fine {
  font-size: 0.9rem;
  color: var(--muted);
}
.cta-row + .fine {
  margin-top: 18px;
}
.section--ink .fine {
  color: #9aa7bc;
}

/* Dark stage: hero and page heroes, with live background */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--on-dark);
}
.hero::before,
.page-hero::before,
.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero::before,
.page-hero::before {
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  right: -12vw;
  top: -22vw;
  background: radial-gradient(
    circle,
    rgba(64, 132, 200, 0.42),
    transparent 65%
  );
  animation: drift-a 22s ease-in-out infinite alternate;
}
.hero::after,
.page-hero::after {
  width: 50vw;
  height: 50vw;
  max-width: 680px;
  max-height: 680px;
  left: -16vw;
  bottom: -26vw;
  background: radial-gradient(
    circle,
    rgba(201, 166, 107, 0.2),
    transparent 65%
  );
  animation: drift-b 28s ease-in-out infinite alternate;
}
@keyframes drift-a {
  to {
    transform: translate(-8vw, 6vw) scale(1.12);
  }
}
@keyframes drift-b {
  to {
    transform: translate(10vw, -5vw) scale(1.08);
  }
}
.live-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 22%,
    #000 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 22%,
    #000 78%,
    transparent 100%
  );
}
.hero h1,
.page-hero h1 {
  color: #fff;
}
.hero .lede,
.page-hero .lede,
.page-hero p {
  color: var(--on-dark-soft);
}
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--gold);
}
.hero .fine,
.page-hero .fine {
  color: #94a3ba;
}
.hero a:not(.btn),
.page-hero a:not(.btn) {
  color: #fff;
}

.hero {
  padding-top: clamp(64px, 9vw, 120px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}
.hero-copy {
  padding-bottom: clamp(64px, 9vw, 128px);
}
.hero-figure {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 460px);
}
.hero-figure::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 18%;
  width: 115%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(140, 186, 236, 0.4) 0%,
    rgba(64, 132, 200, 0.18) 38%,
    transparent 66%
  );
}
.hero-figure::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 14%;
  width: 92%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(201, 166, 107, 0.35);
}
.hero-figure img {
  width: 100%;
  filter: drop-shadow(0 0 30px rgba(120, 170, 230, 0.22));
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}
.hero-figure figcaption {
  position: absolute;
  left: -8%;
  bottom: 18%;
  display: grid;
  gap: 2px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(7, 19, 40, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.82rem;
  color: var(--on-dark-soft);
  letter-spacing: 0.02em;
}
.hero-figure figcaption strong {
  font: 500 1.1rem/1.2 var(--serif);
  color: #fff;
  letter-spacing: 0;
}
@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-copy {
    padding-bottom: 24px;
  }
  .hero-figure {
    width: min(100%, 320px);
  }
  .hero-figure figcaption {
    left: -4%;
  }
}

.page-hero {
  padding: clamp(72px, 10vw, 136px) 0 clamp(64px, 8vw, 112px);
}
.page-hero h1 {
  max-width: 18ch;
}
.page-hero--figure {
  padding-bottom: 0;
}
.page-hero--figure .hero-copy {
  padding-bottom: clamp(64px, 8vw, 112px);
}

/* Facts band */
.facts {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.facts p {
  margin: 0;
  padding: 36px 32px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  border-left: 1px solid var(--line);
}
.facts p:first-child {
  border-left: 0;
  padding-left: 0;
}
.facts strong {
  display: block;
  font: 500 1.45rem/1.2 var(--serif);
  color: var(--ink);
  margin-bottom: 6px;
}
@media (max-width: 760px) {
  .facts-grid {
    grid-template-columns: 1fr;
  }
  .facts p,
  .facts p:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0;
  }
  .facts p:first-child {
    border-top: 0;
  }
}

/* Grids and cards */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: #d6cfbf;
}
.section--white .card {
  background: var(--paper);
  box-shadow: none;
}
.section--white .card:hover {
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.card h3 {
  margin-bottom: 0.5em;
}
.card p {
  color: var(--ink-soft);
}
.card p:last-child {
  margin-bottom: 0;
}
.card .num {
  font: 500 0.82rem/1 var(--brand);
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 20px;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.list {
  padding-left: 1.2em;
  margin: 0 0 1em;
}
.list li {
  margin-bottom: 0.45em;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.checks li {
  position: relative;
  padding: 0 0 18px 36px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.checks li:last-child {
  border-bottom: 0;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 14px;
  height: 7px;
  border-left: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: rotate(-45deg);
}
.section--ink .checks li {
  border-color: var(--line-dark);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Framework */
.framework {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.framework li {
  position: relative;
  padding: 32px 4px 0 0;
  border-top: 1px solid rgba(11, 26, 51, 0.18);
}
.framework li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font: 400 clamp(2.6rem, 4vw, 3.4rem)/1 var(--serif);
  color: var(--gold-deep);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.framework li::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.framework li:hover::after {
  transform: scaleX(1);
}
.framework h3 {
  font-size: 1.2rem;
}
.framework p {
  font-size: 0.97rem;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 960px) {
  .framework {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
}
@media (max-width: 560px) {
  .framework {
    grid-template-columns: 1fr;
  }
}

/* Quote */
.quote {
  position: relative;
  font: 400 clamp(1.6rem, 3vw, 2.4rem)/1.3 var(--serif);
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 26ch;
  padding-top: 56px;
}
.section--ink .quote {
  color: #fff;
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: -12px;
  left: -4px;
  font: 400 6rem/1 var(--serif);
  color: var(--gold);
}
.quote-by {
  margin-top: 24px;
  font-size: 0.95rem;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  padding: 22px 48px 22px 0;
  font: 500 1.15rem/1.4 var(--serif);
  list-style: none;
  position: relative;
  min-height: 44px;
  transition: color 0.2s var(--ease);
}
.faq summary:hover {
  color: var(--accent);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details p {
  color: var(--ink-soft);
  padding-bottom: 14px;
  max-width: 62ch;
}

/* Forms */
.form {
  display: grid;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 600;
  font-size: 0.92rem;
}
.field .hint {
  font-size: 0.85rem;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #8f99a8;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 50px;
  width: 100%;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}
.field [aria-invalid="true"] {
  border-color: var(--error);
}
.field .err {
  color: var(--error);
  font-size: 0.9rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.status {
  padding: 16px 18px;
  border-radius: 12px;
  font-weight: 500;
}
.status--error {
  background: #fbeceb;
  color: var(--error);
  border: 1px solid #efc4c0;
}
.status--ok {
  background: #e8f4ee;
  color: var(--ok);
  border: 1px solid #bcdcc9;
}
.req {
  color: var(--error);
}

/* Footer */
.site-footer {
  background: #050f21;
  color: #aab5c7;
  padding: 80px 0 40px;
  font-size: 0.95rem;
}
.site-footer a {
  color: #e6ecf4;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h2 {
  font: 600 0.75rem/1 var(--brand);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 10px;
}
.site-footer .legal {
  grid-column: 1 / -1;
  border-top: 1px solid #1a2840;
  padding-top: 24px;
  margin-top: 16px;
  font-size: 0.84rem;
  color: #8592a8;
}
@media (max-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 68ch;
}
.prose h2 {
  margin-top: 1.6em;
  font-size: 1.6rem;
}
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Scroll reveal, enabled by site.js only when motion is allowed */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Headline accent */
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

/* Floating icons around the portrait */
.floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.floater {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(12, 31, 61, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  animation: float 7s ease-in-out infinite;
}
.floater svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.floater:nth-child(even) svg {
  stroke: #9cc3ec;
}
.floater--1 { top: 8%; left: 0; animation-duration: 7s; }
.floater--2 { top: 4%; right: 6%; animation-duration: 8.5s; animation-delay: -2s; }
.floater--3 { top: 30%; right: -8%; animation-duration: 6.5s; animation-delay: -4s; }
.floater--4 { top: 34%; left: -12%; animation-duration: 9s; animation-delay: -1s; }
.floater--5 { top: 56%; right: -4%; animation-duration: 7.5s; animation-delay: -3s; }
.floater--6 { top: 60%; left: -6%; width: 48px; height: 48px; animation-duration: 8s; animation-delay: -5s; }
@keyframes float {
  50% {
    transform: translateY(-14px);
  }
}
@media (max-width: 800px) {
  .floater {
    width: 46px;
    height: 46px;
  }
  .floater svg {
    width: 21px;
    height: 21px;
  }
  .floater--4 { left: -4%; }
  .floater--3 { right: -2%; }
  .floater--5,
  .floater--6 {
    display: none;
  }
}

/* Statement band */
.statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
  padding: clamp(96px, 14vw, 200px) 0;
  text-align: center;
}
.statement p {
  margin: 0 auto;
  max-width: 22ch;
  font: 400 clamp(2.2rem, 5.6vw, 4.6rem)/1.08 var(--serif);
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.statement span {
  display: block;
  font-style: italic;
  color: var(--gold);
}

/* Blog */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s var(--ease);
}
.post-card:hover {
  color: var(--ink);
  background: var(--surface);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.post-card h2 {
  font-size: 1.45rem;
  margin: 0;
}
.post-card p {
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.tag {
  font: 600 0.7rem/1 var(--brand);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid #dccfb6;
  border-radius: 999px;
  padding: 6px 10px 5px;
}
.post-by {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.post-by span {
  margin-left: auto;
  font-weight: 400;
  color: var(--muted);
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 166, 107, 0.6);
}
.article-hero h1 {
  max-width: 22ch;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}
.back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--on-dark-soft) !important;
  text-decoration: none;
}
.back::before {
  content: "\2190  ";
}
.back:hover {
  color: #fff !important;
}
.byline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.byline .avatar {
  width: 56px;
  height: 56px;
}
.byline strong {
  display: block;
  color: #fff;
  font-weight: 600;
}
.byline span {
  font-size: 0.9rem;
  color: var(--on-dark-soft);
}
.article {
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}
.article .lede {
  font: 400 clamp(1.25rem, 2vw, 1.45rem)/1.55 var(--serif);
  color: var(--ink);
  margin-bottom: 1.6em;
}
.article h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin: 1.8em 0 0.6em;
}
.article ul,
.article ol {
  padding-left: 1.3em;
}
.article li {
  margin-bottom: 0.5em;
}
.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  max-width: 880px;
}
.avatar--lg {
  width: 120px;
  height: 120px;
}
@media (max-width: 640px) {
  .author-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 38px;
  }
}
@media (max-width: 480px) {
  .brand-name {
    font-size: 0.86rem;
    letter-spacing: 0.1em;
  }
}

/* Footer social */
.social {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e6ecf4;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Chat widget */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.chat-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font: 600 0.95rem/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 16px 36px -14px rgba(7, 19, 40, 0.6), 0 0 0 6px rgba(201, 166, 107, 0.18);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.chat-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -14px rgba(7, 19, 40, 0.7), 0 0 0 8px rgba(201, 166, 107, 0.22);
}
.chat.is-open .chat-launch span {
  display: none;
}
.chat.is-open .chat-launch {
  padding: 0 17px;
}
.chat-panel {
  width: min(390px, calc(100vw - 28px));
  max-height: min(600px, calc(100vh - 110px));
  max-height: min(600px, calc(100dvh - 110px));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(7, 19, 40, 0.55), 0 0 0 1px rgba(11, 26, 51, 0.06);
  animation: chat-in 0.3s var(--ease);
}
[hidden] {
  display: none !important;
}
@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 18px;
  background: linear-gradient(135deg, var(--night), var(--night-2));
  color: #fff;
}
.chat-head strong {
  display: block;
  font: 500 1.05rem/1.2 var(--serif);
}
.chat-head span {
  font-size: 0.8rem;
  color: var(--on-dark-soft);
}
.chat-close {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.chat-body {
  flex: 1;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 14px;
}
.chat-log {
  display: grid;
  gap: 12px;
}
.bubble.bubble--me {
  justify-self: end;
  max-width: 85%;
  border-radius: 18px 4px 18px 18px;
  background: var(--night-2);
  color: #fff;
}
.bubble--typing::after {
  content: "...";
  display: inline-block;
  animation: typing 1.2s steps(4) infinite;
  width: 0;
  overflow: hidden;
  vertical-align: bottom;
}
@keyframes typing {
  to {
    width: 1.2em;
  }
}
.chat-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-suggest .chip,
.chat-note-open {
  background: var(--surface);
  font: 600 0.88rem/1.3 var(--sans);
  text-align: left;
  padding: 10px 14px;
  cursor: pointer;
}
.chat-ask {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 12px 14px 0;
  border-top: 1px solid var(--line);
}
.chat-ask textarea {
  flex: 1;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  border: 1px solid #8f99a8;
  border-radius: 14px;
  padding: 11px 13px;
  min-height: 46px;
  max-height: 120px;
  resize: none;
}
.chat-ask textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--accent);
}
.chat-ask button {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
  cursor: pointer;
}
.chat-ask button:disabled {
  opacity: 0.5;
  cursor: default;
}
.chat-panel > .chat-actions {
  padding: 10px 14px 0;
}
.chat-panel > .chat-fine {
  padding: 8px 14px 12px;
}
.bubble {
  margin: 0;
  padding: 14px 16px;
  border-radius: 4px 18px 18px 18px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
}
.bubble--sent {
  border-radius: 18px 4px 18px 18px;
  background: var(--accent-soft);
}
.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #dccfb6;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.chip:hover {
  border-color: var(--gold);
  background: #fbf6ec;
  color: var(--ink);
}
.chat-form {
  display: grid;
  gap: 8px;
}
.chat-form input,
.chat-form textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #8f99a8;
  border-radius: 12px;
  padding: 11px 13px;
  min-height: 46px;
  width: 100%;
}
.chat-form textarea {
  resize: vertical;
  min-height: 84px;
}
.chat-form input:focus,
.chat-form textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--accent);
}
.chat-form .btn {
  margin-top: 4px;
}
.chat-err {
  margin: 0;
  color: var(--error);
  font-size: 0.88rem;
}
.chat-fine {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 560px) {
  .chat {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }
  .chat-launch span {
    display: none;
  }
  .chat-launch {
    width: 56px;
    padding: 0;
    justify-content: center;
  }
}
/* Tablets in landscape: keep the floating icons inside the hero */
@media (min-width: 921px) and (max-width: 1320px) {
  .floater--3 { right: 0; }
  .floater--5 { right: 2%; }
}

/* Touch screens: no hover lift that sticks after a tap */
@media (hover: none) {
  .post-card:hover,
  .card:hover,
  .chat-launch:hover,
  .btn:hover {
    transform: none;
  }
}
html {
  -webkit-text-size-adjust: 100%;
}
a,
button {
  -webkit-tap-highlight-color: rgba(201, 166, 107, 0.2);
}
@media print {
  .chat {
    display: none;
  }
}
