:root {
  --ink: #0F2B2C;
  --ink-soft: #16403F;
  --ink-line: #2A5250;
  --gold: #8750f7;
  --gold-soft: #d0baff;
  --paper: #F4F5EF;
  --paper-line: #D9D8CB;
  --sage: #6E8F84;
  --text-dark: #182625;
  --text-mid: #4B5B57;
  --text-on-ink: #E7EFEC;
  --text-on-ink-mid: #A9C2BC;
  --radius: 2px;
  --max: 1120px;
  --font: "Newsreader", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-photo-a,
  .hero-photo-b { animation: none; }
  .mosaic-item:hover img,
  .uk-photo:hover img,
  .how-photo:hover img,
  .trust-photo:hover img,
  .card:hover { transform: none; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(34px, 4.6vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; }

.kicker,
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 10px;
}

.kicker.on-ink,
.hero .kicker { color: var(--gold-soft); }

.muted { color: var(--text-mid); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--gold);
  color: #fff;
  padding: 8px 14px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
}

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

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

/* ===== HEADER ===== */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  position: relative;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-on-ink);
  font-family: var(--font);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.logo small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 3px;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--text-on-ink-mid);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--gold-soft); }

.nav a.btn { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary,
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover,
.btn-gold:hover {
  background: var(--gold-soft);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--text-on-ink);
  border-color: var(--ink-line);
}
.btn-ghost:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.nav .btn-primary {
  padding: 9px 16px;
  background: var(--gold-soft);
  color: var(--ink);
}
.nav .btn-primary:hover {
  background: var(--gold);
  color: #fff;
}

/* ===== HERO ===== */
.hero-band {
  background:
    linear-gradient(105deg, rgba(15, 43, 44, 0.94) 0%, rgba(15, 43, 44, 0.78) 55%, rgba(15, 43, 44, 0.72) 100%),
    url("https://images.unsplash.com/photo-1593113598332-cd288d649433?auto=format&fit=crop&w=1800&q=80") center 30% / cover no-repeat;
  color: var(--text-on-ink);
  padding: 76px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-copy {
  animation: bubble-in 0.75s ease both;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: end;
  padding: 0;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  margin-top: 16px;
  line-height: 1.08;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 500;
}

.lede {
  font-size: 18px;
  color: var(--text-on-ink-mid);
  max-width: 46ch;
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 0;
}

.hero-note {
  font-size: 13.5px;
  color: var(--text-on-ink-mid);
  margin-top: 18px;
  max-width: 48ch;
}

.chat-card {
  background: rgba(15, 43, 44, 0.72);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.chat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px dashed var(--ink-line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 0 rgba(208, 186, 255, 0.7);
  animation: pulse-dot 1.8s ease-out infinite;
}

.chat-body {
  padding: 16px;
  min-height: 300px;
}

.bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  font-size: 14.5px;
}

.bot {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ink-line);
  color: var(--text-on-ink);
}

.user {
  margin-left: auto;
  background: var(--gold);
  color: #fff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  border: 1px dashed var(--ink-line);
  background: transparent;
  border-radius: 20px;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--text-on-ink-mid);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
  background: rgba(135, 80, 247, 0.12);
}

.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px dashed var(--ink-line);
}

.composer span {
  flex: 1;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text-on-ink-mid);
  font-size: 13px;
  font-family: var(--mono);
}

/* ===== SECTIONS ===== */
.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--paper);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}

.section.ink {
  background: var(--ink);
  color: var(--text-on-ink);
}

.section.ink h2 { color: #fff; }
.section.ink .muted { color: var(--text-on-ink-mid); }

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}

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

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.card {
  background: var(--paper);
  padding: 26px 22px;
  border: 0;
  border-radius: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.card:hover {
  background: #fff;
  transform: translateY(-2px);
}

.section.ink .grid-3,
.section.ink .grid-2 {
  background: var(--ink-line);
  border-color: var(--ink-line);
}

.section.ink .card {
  background: rgba(255, 255, 255, 0.02);
}

.section.ink .card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.icon {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 14px;
  display: block;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
}

.card p {
  color: var(--text-mid);
  font-size: 14.5px;
  margin: 0;
}

.section.ink .card p { color: var(--text-on-ink-mid); }
.section.ink .card h3 { color: #fff; }

.compare {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  border: 1px solid var(--paper-line);
}

.compare th,
.compare td {
  text-align: left;
  padding: 15px 16px;
  border-bottom: 1px solid var(--paper-line);
  vertical-align: top;
}

.compare th {
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.compare td:first-child {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
}

.compare tbody tr {
  transition: background 0.2s ease;
}

.compare tbody tr:hover {
  background: rgba(135, 80, 247, 0.06);
}

.compare tr:last-child td { border-bottom: 0; }

.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--paper-line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  display: block;
  padding-top: 4px;
}

.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 13.5px; }

.honesty {
  background: transparent;
  border: 1px solid var(--paper-line);
  border-left: 3px solid var(--gold);
  padding: 26px 22px;
}

.honesty p { color: var(--text-mid); font-size: 14.5px; }

.hero-visual {
  position: relative;
  min-height: 420px;
}

.hero-photo {
  position: absolute;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  z-index: 1;
}

.hero-photo-a {
  width: 168px;
  height: 124px;
  left: -36px;
  top: 18px;
  transform: rotate(-7deg);
  animation: float-a 6s ease-in-out infinite;
}

.hero-photo-b {
  width: 132px;
  height: 100px;
  right: -18px;
  bottom: 48px;
  transform: rotate(6deg);
  animation: float-b 7s ease-in-out infinite;
}

.typing {
  display: none;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
}

.typing.show { display: flex; }

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  animation: typing-dot 1s ease-in-out infinite;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

.chat-card.is-animating [data-chat] {
  opacity: 0;
  transform: translateY(10px);
}

.chat-card.is-animating [data-chat].show {
  opacity: 1;
  transform: none;
  animation: bubble-in 0.45s ease both;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
  gap: 6px;
  background: var(--ink);
  padding: 6px;
}

.mosaic-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  height: 240px;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
}

.mosaic-item:hover img {
  transform: scale(1.07);
}

.mosaic-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgba(15, 43, 44, 0.88));
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.uk-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 36px;
}

.uk-intro .section-head { margin-bottom: 0; }

.uk-photo,
.how-photo,
.trust-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.uk-photo {
  height: 320px;
}

.uk-photo img,
.how-photo img,
.trust-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.uk-photo:hover img,
.how-photo:hover img,
.trust-photo:hover img {
  transform: scale(1.04);
}

.how-photo {
  height: 220px;
  margin-bottom: 16px;
}

.how-side { min-width: 0; }

.trust-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 36px;
}

.trust-intro .section-head { margin-bottom: 0; }

.trust-photo {
  height: 280px;
  border: 1px solid var(--ink-line);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.photo-credit { opacity: 0.7; }

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(208, 186, 255, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(208, 186, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(208, 186, 255, 0); }
}

@keyframes typing-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes float-a {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-7deg) translateY(-8px); }
}

@keyframes float-b {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-10px); }
}

.cta-band {
  background:
    linear-gradient(180deg, rgba(15, 43, 44, 0.86) 0%, rgba(15, 43, 44, 0.9) 100%),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1800&q=80") center 40% / cover no-repeat;
  color: var(--text-on-ink);
  padding: 88px 0;
  text-align: center;
  position: relative;
}

.cta-band h2 {
  color: #fff;
  max-width: 22ch;
  margin: 14px auto 16px;
}

.cta-band p {
  color: var(--text-on-ink-mid);
  max-width: 50ch;
  margin: 0 auto 30px;
}

.cta-band .hero-actions { justify-content: center; margin-top: 0; }

.site-footer {
  background: var(--paper);
  padding: 28px 0;
  border-top: 1px solid var(--paper-line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mid);
}

.footer-inner a {
  color: var(--text-mid);
  text-decoration: none;
}

.footer-inner a:hover { color: var(--gold); }

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--text-on-ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2,
  .uk-intro,
  .trust-intro,
  .photo-mosaic { grid-template-columns: 1fr 1fr; }
  .hero,
  .split { grid-template-columns: 1fr; }
  .hero { gap: 40px; align-items: start; }
  .step { grid-template-columns: 50px 1fr; }
  .hero-photo-a { left: 8px; }
  .hero-photo-b { right: 8px; }
  .mosaic-item { height: 200px; }
  .uk-photo,
  .trust-photo { height: 240px; }
}

@media (max-width: 640px) {
  .photo-mosaic,
  .uk-intro,
  .trust-intro,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
  .hero-photo { display: none; }
  .hero-visual { min-height: 0; }
  .mosaic-item { height: 180px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    right: 20px;
    top: 70px;
    background: var(--ink-soft);
    border: 1px solid var(--ink-line);
    border-radius: var(--radius);
    padding: 14px;
    min-width: 200px;
  }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
}
