/*
Theme Name: DJCoetzee 2026
Theme URI: https://djcoetzee.com
Author: Dylan Coetzee
Author URI: https://djcoetzee.com
Description: Single-page portfolio theme for Dylan Coetzee — Senior B2B Marketing Director. Self-contained, no plugins required. Navy and gold typographic design with built-in contact form handling via wp_mail.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: djcoetzee-2026
*/

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

:root {
  --navy:      #0E2A45;
  --navy-mid:  #152F4E;
  --navy-dark: #091B2E;
  --gold:      #B8883A;
  --gold-lt:   #D4A55A;
  --cream:     #FAF8F4;
  --white:     #FFFFFF;
  --text:      #1A1A1A;
  --mid:       #4A4A4A;
  --light:     #8A8A8A;
  --border:    rgba(184,136,58,0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── NAV ── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9,27,46,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: height 0.35s cubic-bezier(.2,.7,.2,1),
              background 0.35s ease,
              border-color 0.35s ease;
}

nav.site-nav.is-scrolled {
  height: 64px;
  background: rgba(9,27,46,0.94);
  border-bottom-color: rgba(184,136,58,0.18);
}

/* Logo: 2-line lockup. Sub-label fades out on scroll for a quieter chrome state. */
.nav-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  gap: 4px;
}

/* Image logo — navy artwork inverted to clean white for the dark nav. */
.nav-logo-img {
  display: block;
  height: 34px;
  width: auto;
  /* Lock the aspect ratio so flex column layout can't stretch the image. */
  aspect-ratio: 630 / 142;
  align-self: flex-start;
  /* Source is navy on transparent; flip to white. */
  filter: brightness(0) invert(1);
  transition: height 0.35s cubic-bezier(.2,.7,.2,1), opacity 0.25s ease;
}
.nav-logo:hover .nav-logo-img { opacity: 0.85; }

nav.site-nav.is-scrolled .nav-logo-img { height: 28px; }

.nav-logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
  max-height: 14px;
  overflow: hidden;
}

nav.site-nav.is-scrolled .nav-logo-sub {
  opacity: 0;
  transform: translateY(-4px);
  max-height: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: rgba(184,136,58,0.55);
  transition: color 0.25s ease;
}

.nav-text { position: relative; }

/* Hairline rule that slides in from the left on hover/active. */
.nav-links a:not(.nav-cta) .nav-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: auto;
  bottom: -6px;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.35s cubic-bezier(.2,.7,.2,1);
}

.nav-links a:not(.nav-cta):hover { color: var(--white); }
.nav-links a:not(.nav-cta):hover .nav-num { color: var(--gold-lt); }
.nav-links a:not(.nav-cta):hover .nav-text::after { width: 100%; }

.nav-links a.is-active:not(.nav-cta) { color: var(--white); }
.nav-links a.is-active:not(.nav-cta) .nav-num { color: var(--gold); }
.nav-links a.is-active:not(.nav-cta) .nav-text::after { width: 100%; }

/* CTA */
.nav-cta {
  margin-left: 18px;
  background: var(--gold);
  color: #fff !important;
  padding: 11px 22px !important;
  border-radius: 1px;
  letter-spacing: 1.5px !important;
  overflow: hidden;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 10px 30px -12px rgba(184,136,58,0.4);
}

.nav-cta:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 14px 36px -10px rgba(184,136,58,0.55);
}

.nav-cta-arrow {
  display: inline-block;
  margin-left: 4px;
  transform: translateX(-3px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.nav-cta:hover .nav-cta-arrow {
  transform: translateX(2px);
  opacity: 1;
}

/* Hamburger — three-line → X */
.nav-toggle-bars {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 14px;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1), opacity 0.2s ease, top 0.3s ease;
  border-radius: 1px;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6.5px; }
.nav-toggle-bars span:nth-child(3) { top: 13px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  top: 6.5px;
  transform: rotate(45deg);
  background: var(--gold);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  top: 6.5px;
  transform: rotate(-45deg);
  background: var(--gold);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(184,136,58,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 10% 80%, rgba(14,42,69,0.8) 0%, transparent 60%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,136,58,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,136,58,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 40px 80px;
  width: 100%;
}

/* Full-width top block: eyebrow + headline + rule sit above the two columns. */
.hero-top { margin-bottom: 48px; }

/* Body of the hero: text on the left, portrait on the right. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero-text { min-width: 0; }

/* ── PORTRAIT ── */
.hero-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: djc-rise 1s 0.55s cubic-bezier(.2,.7,.2,1) forwards;
}

.hero-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Soft gold radial glow behind the head — quiet atmosphere. */
.hero-portrait-glow {
  position: absolute;
  inset: 6% 6% 12% 6%;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%,
      rgba(184,136,58,0.28) 0%,
      rgba(184,136,58,0.10) 42%,
      transparent 78%);
  filter: blur(8px);
  pointer-events: none;
}

/* Thin gold-bordered square offset behind the portrait — editorial frame device. */
.hero-portrait-square {
  position: absolute;
  inset: 14% -4% -4% 14%;
  border: 1px solid var(--gold);
  pointer-events: none;
  opacity: 0.7;
}
.hero-portrait-square::before,
.hero-portrait-square::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
  background: var(--navy-dark);
  transform: rotate(45deg);
}
.hero-portrait-square::before { top: -8px; right: -8px; }
.hero-portrait-square::after  { bottom: -8px; left: -8px; }

.hero-portrait-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  max-width: 360px;
  /* Flip horizontally so Dylan faces inward toward the headline. */
  transform: scaleX(-1);
  /* Bottom fades into the navy so there's no clean edge — feels integrated. */
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 82%, transparent 100%);
          mask-image: linear-gradient(180deg, black 0%, black 82%, transparent 100%);
  /* Subtle drop shadow gives the head a touch of separation from the bg. */
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.45));
}

.hero-portrait-caption {
  position: relative;
  z-index: 3;
  margin-top: -4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding-top: 18px;
}
.hero-portrait-caption::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 12px;
}
.hero-portrait-name {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0.3px;
  line-height: 1;
}
.hero-portrait-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(184,136,58,0.85);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 10vw, 144px);
  line-height: 0.86;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 36px;
  display: block;
}

/* Each line rises in turn — a refined editorial reveal. */
.hero-title-line {
  display: block;
  opacity: 0;
  transform: translateY(36px);
  animation: djc-rise 1s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title-line:nth-child(1) { animation-delay: 0.15s; }
.hero-title-line:nth-child(2) { animation-delay: 0.32s; }
.hero-title-line:nth-child(3) { animation-delay: 0.49s; }

@keyframes djc-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* The signature: italic gold serif inside Bebas caps. */
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 0.88;
  padding-right: 0.05em;
}

/* Tiny gold square period — magazine flourish. */
.hero-title-period {
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  background: var(--gold);
  margin-left: 0.12em;
  vertical-align: 0.06em;
}

/* Two-segment rule under the hero title. */
.hero-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(12px);
  animation: djc-rise 0.9s 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-rule span:first-child {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--gold);
}
.hero-rule span:last-child {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-sub strong {
  color: rgba(255,255,255,0.95);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 80px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: white;
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  padding: 15px 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-lt);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid rgba(184,136,58,0.2);
  background: rgba(184,136,58,0.15);
  max-width: 700px;
}

.hero-stat {
  background: rgba(14,42,69,0.8);
  padding: 24px 20px;
  text-align: center;
}

.hero-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.3;
}

/* ── SECTION SHARED ── */
section { padding: 100px 40px; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 24px;
}

.section-title.light { color: var(--white); }

.section-intro {
  font-size: 18px;
  font-weight: 300;
  color: var(--mid);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 60px;
}

.section-intro.light { color: rgba(255,255,255,0.7); }

/* ── ABOUT ── */
#about {
  background: var(--cream);
  border-top: 1px solid rgba(14,42,69,0.08);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-text p strong {
  color: var(--navy);
  font-weight: 600;
}

.about-creds {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}

.about-cred {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--mid);
}

.about-cred::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.about-right {
  background: var(--navy);
  padding: 48px;
  border-left: 3px solid var(--gold);
}

.about-quote {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 28px;
}

.about-quote-attr {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.about-bg-block {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.about-bg-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.about-bg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-bg-list div {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

/* ── WHAT I DO ── */
#services { background: var(--navy); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 20px;
}

.service-card {
  background: var(--navy-mid);
  padding: 48px 36px;
  border-top: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}

.service-card:hover {
  border-color: var(--gold);
  background: rgba(184,136,58,0.05);
}

.service-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: rgba(184,136,58,0.2);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.service-title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 28px;
}

.service-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-items li {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.service-items li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 11px;
}

/* ── RESULTS ── */
#results { background: var(--cream); }

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.results-table tr {
  border-bottom: 1px solid rgba(14,42,69,0.08);
  transition: background 0.15s;
}

.results-table tr:hover { background: rgba(184,136,58,0.04); }

.results-table td {
  padding: 22px 24px;
  vertical-align: top;
  font-size: 15px;
}

.results-table td:first-child {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 1px;
  white-space: nowrap;
  width: 220px;
  padding-right: 40px;
  vertical-align: middle;
}

.results-table td:last-child {
  color: var(--mid);
  line-height: 1.65;
}

/* ── HOW I WORK ── */
#how { background: var(--navy-dark); }

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 8px;
}

.how-step {
  background: rgba(255,255,255,0.03);
  padding: 40px 28px;
  border-top: 1px solid rgba(184,136,58,0.15);
  transition: background 0.2s;
}

.how-step:hover { background: rgba(184,136,58,0.05); }

.how-step-n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: rgba(184,136,58,0.15);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.how-step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.how-step-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ── WHO I WORK WITH ── */
#who { background: var(--cream); border-top: 1px solid rgba(14,42,69,0.08); }

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

.who-intro {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 28px;
}

.who-sublabel {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light);
  font-weight: 600;
  margin-bottom: 16px;
}

.who-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.who-pill {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 2px;
}

.who-right {
  background: var(--navy);
  padding: 48px;
}

.who-right-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.3;
}

.who-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.who-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}

.who-checks li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.who-disclaimer {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── LOGO MARQUEE (inside #who) ── */
.logo-marquee {
  position: relative;
  margin-top: 80px;
  /* Full-bleed: break out of the cream section into a dark strip. */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  background: var(--navy-dark);
  border-top: 1px solid rgba(184,136,58,0.18);
  border-bottom: 1px solid rgba(184,136,58,0.18);
  padding: 40px 0 44px;
  overflow: hidden;
}

.logo-marquee-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.logo-marquee-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Soft fade edges so logos don't pop in/out hard. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: djc-marquee 50s linear infinite;
  will-change: transform;
}

.logo-marquee:hover .logo-marquee-track,
.logo-marquee:focus-within .logo-marquee-track {
  animation-play-state: paused;
}

.logo-marquee-item {
  flex: 0 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.logo-marquee-item:hover { opacity: 1; }

.logo-marquee-item img {
  display: block;
  max-height: 56px;
  width: auto;
  max-width: 180px;
  height: auto;
  /* Logos are white cutouts — keep them white on the navy strip. */
  filter: brightness(0) invert(1);
}

@keyframes djc-marquee {
  from { transform: translate3d(0, 0, 0); }
  /* Translate by exactly half the track width — the second half is a duplicate, giving a seamless loop. */
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 900px) {
  .logo-marquee { margin-top: 60px; padding: 32px 0 36px; }
  .logo-marquee-track { gap: 48px; animation-duration: 38s; }
  .logo-marquee-item { height: 40px; }
  .logo-marquee-item img { max-height: 40px; max-width: 130px; }
  .logo-marquee-viewport {
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}

/* ── AVAILABILITY BANNER ── */
#availability {
  background: var(--gold);
  padding: 48px 40px;
}

.avail-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.avail-text {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--navy-dark);
  font-style: italic;
  line-height: 1.3;
}

.avail-detail {
  font-size: 14px;
  color: rgba(9,27,46,0.7);
  margin-top: 4px;
  font-style: normal;
  font-family: 'DM Sans', sans-serif;
}

.btn-dark {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 16px 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.btn-dark:hover { background: var(--navy-mid); }

/* ── CONTACT ── */
#contact { background: var(--navy-dark); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-left p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 16px;
}

.contact-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}

.contact-detail a {
  color: var(--gold-lt);
  text-decoration: none;
}

.contact-detail a:hover { text-decoration: underline; }

.contact-detail-label {
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  min-width: 60px;
}

.contact-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 24px 0 32px;
}

/* ── FORM ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-group select option { background: var(--navy); }

.form-group textarea { resize: vertical; min-height: 120px; }

/* Honeypot hide */
.form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-submit {
  background: var(--gold);
  color: white;
  border: none;
  padding: 16px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
  align-self: flex-start;
}

.form-submit:hover { background: var(--gold-lt); }

.form-note {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}

.form-message {
  padding: 20px 24px;
  font-size: 15px;
  border-radius: 2px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.form-message.success {
  background: rgba(184,136,58,0.15);
  border: 1px solid var(--gold);
  color: var(--gold-lt);
}

.form-message.error {
  background: rgba(220, 90, 90, 0.12);
  border: 1px solid rgba(220, 90, 90, 0.6);
  color: #f0b9b9;
}

/* ── FOOTER ── */
footer.site-footer {
  background: var(--navy);
  padding: 40px;
  border-top: 1px solid rgba(184,136,58,0.15);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.footer-logo-img {
  display: block;
  height: 30px;
  width: auto;
  aspect-ratio: 630 / 142;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.footer-logo:hover .footer-logo-img { opacity: 1; }

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── DIVIDER ── */
.gold-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 24px 0 48px;
}

/* ── MOBILE NAV TOGGLE ── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(184,136,58,0.25);
  color: var(--white);
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 1px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav-toggle:hover { border-color: var(--gold); background: rgba(184,136,58,0.08); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav.site-nav { padding: 0 20px; height: 72px; }
  nav.site-nav.is-scrolled { height: 64px; }
  .nav-logo-img { height: 26px; }
  nav.site-nav.is-scrolled .nav-logo-img { height: 22px; }
  .nav-logo-sub { font-size: 8px; letter-spacing: 2px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9,27,46,0.98);
    backdrop-filter: blur(16px);
    padding: 16px 20px 28px;
    border-top: 1px solid rgba(184,136,58,0.18);
    border-bottom: 1px solid rgba(184,136,58,0.18);
  }
  .nav-links.open { display: flex; }
  .nav-links li {
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links li:last-child { border-bottom: none; padding-top: 16px; }
  .nav-links a {
    padding: 16px 4px;
    font-size: 14px;
    width: 100%;
  }
  .nav-links a:not(.nav-cta) .nav-text::after { display: none; }
  .nav-cta { margin-left: 0; text-align: center; justify-content: center; }

  section { padding: 70px 20px; }
  #availability { padding: 40px 20px; }

  .hero-inner { padding: 100px 20px 60px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 100%; }

  /* Stack hero: top block, then text, then portrait below. */
  .hero-top { margin-bottom: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-portrait { order: 2; }
  .hero-portrait-frame { max-width: 280px; }
  .hero-portrait-img { max-width: 280px; }
  .hero-portrait-square { inset: 14% -2% -2% 14%; }
  .hero-portrait-square::before,
  .hero-portrait-square::after { width: 12px; height: 12px; }
  .hero-portrait-name { font-size: 19px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  /* Stack each result row: metric on top, description below. */
  .results-table,
  .results-table tbody,
  .results-table tr,
  .results-table td {
    display: block;
    width: 100%;
  }
  .results-table tr {
    padding: 22px 0 24px;
    border-bottom: 1px solid rgba(14,42,69,0.1);
  }
  .results-table tr:last-child { border-bottom: none; }
  .results-table td { padding: 0; }
  .results-table td:first-child {
    font-size: 30px;
    line-height: 1;
    width: auto;
    white-space: normal;
    padding: 0 0 12px;
    margin: 0;
    vertical-align: baseline;
  }
  .results-table td:last-child {
    font-size: 14.5px;
    line-height: 1.65;
    padding: 0;
  }
  /* Disable the desktop gold-rule slide on mobile — no left padding to grow into. */
  .results-table td:first-child::before { display: none; }
  .results-table tr:hover td:first-child {
    padding-left: 0;
    letter-spacing: 1px;
  }

  .avail-inner { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-d1 { transition-delay: 0.1s; }
.fade-up-d2 { transition-delay: 0.2s; }
.fade-up-d3 { transition-delay: 0.3s; }
.fade-up-d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── WP ADMIN BAR OFFSET ── */
.admin-bar nav.site-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar nav.site-nav { top: 46px; }
}

/* ──────────────────────────────────────────────────────────────
   POLISH PASS — refined editorial details
   ────────────────────────────────────────────────────────────── */

/* Subtle paper grain on cream sections — barely there, but it lifts the page off the screen. */
#about::before,
#results::before,
#who::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.07  0 0 0 0 0.16  0 0 0 0 0.27  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
#about, #results, #who { position: relative; }
#about > *, #results > *, #who > * { position: relative; z-index: 1; }

/* Hero stat cells: gold corner accent appears on hover. */
.hero-stat {
  position: relative;
  transition: background 0.25s ease;
}
.hero-stat::before,
.hero-stat::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.hero-stat::before {
  top: 6px; left: 6px;
  border-right: none; border-bottom: none;
  transform: translate(-4px,-4px);
}
.hero-stat::after {
  bottom: 6px; right: 6px;
  border-left: none; border-top: none;
  transform: translate(4px,4px);
}
.hero-stat:hover { background: rgba(184,136,58,0.05); }
.hero-stat:hover::before,
.hero-stat:hover::after { opacity: 1; transform: translate(0,0); }

.hero-stat-num {
  transition: color 0.25s ease, letter-spacing 0.3s ease;
}
.hero-stat:hover .hero-stat-num {
  color: var(--gold-lt);
  letter-spacing: 2px;
}

/* Buttons: arrow that slides in on hover. */
.btn-primary, .btn-ghost, .btn-dark {
  position: relative;
  overflow: hidden;
}
.btn-primary::after,
.btn-dark::after {
  content: '→';
  display: inline-block;
  margin-left: 6px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.btn-primary:hover::after,
.btn-dark:hover::after {
  opacity: 1;
  transform: translateX(2px);
}
.btn-ghost::after {
  content: '→';
  display: inline-block;
  margin-left: 6px;
  opacity: 0.5;
  transform: translateX(-2px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.btn-ghost:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

/* Service cards: number colours up + diamond mark appears. */
.service-card { position: relative; }
.service-num { transition: color 0.3s ease, transform 0.3s ease; }
.service-card:hover .service-num {
  color: var(--gold);
  transform: translateX(-2px);
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 28px;
  right: 32px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg) scale(0.5);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.service-card:hover::after { opacity: 1; transform: rotate(45deg) scale(1); }

/* Results table: subtle gold left-edge indicator on hover. */
.results-table tr { position: relative; }
.results-table td:first-child {
  position: relative;
  transition: color 0.25s ease, letter-spacing 0.3s ease;
}
.results-table td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
  transition: width 0.4s cubic-bezier(.2,.7,.2,1);
}
.results-table tr:hover td:first-child {
  color: var(--gold-lt);
  letter-spacing: 2px;
  padding-left: 36px;
}
.results-table tr:hover td:first-child::before { width: 24px; }
.results-table tr { transition: background 0.2s ease; }

/* Section labels: a tiny serial — small magazine flourish */
.section-label { position: relative; }

/* How-step cards: number burns gold on hover. */
.how-step-n { transition: color 0.3s ease; }
.how-step:hover .how-step-n { color: var(--gold); }

/* Who pills: hover lifts + gold border */
.who-pill {
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  cursor: default;
}
.who-pill:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgba(184,136,58,0.5);
}

/* Footer: gold hairline above the inner */
footer.site-footer {
  position: relative;
}
footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 64px;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
}

/* Availability banner: subtle diagonal weave so the gold doesn't feel like a flat slab */
#availability {
  position: relative;
  overflow: hidden;
}
#availability::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 24px,
      rgba(9,27,46,0.04) 24px,
      rgba(9,27,46,0.04) 25px
    );
  pointer-events: none;
}
.avail-inner { position: relative; z-index: 1; }

/* Selection */
::selection {
  background: var(--gold);
  color: var(--navy-dark);
}

/* Focus visible — gold ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Reduce motion respects */
@media (prefers-reduced-motion: reduce) {
  .hero-title-line,
  .hero-rule { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ──────────────────────────────────────────────────────────────
   CHAT WIDGET — conversational contact form
   ────────────────────────────────────────────────────────────── */

.djc-chat {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(184,136,58,0.22);
  border-radius: 2px;
  overflow: hidden;
  min-height: 580px;
  max-height: 720px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6),
              0 1px 0 rgba(255,255,255,0.04) inset;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(9,27,46,0.6);
  border-bottom: 1px solid rgba(184,136,58,0.18);
  flex-shrink: 0;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1.5px;
  border-radius: 1px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px -8px rgba(184,136,58,0.6);
}
.chat-avatar em {
  font-style: italic;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  margin-left: 1px;
}

.chat-header-meta { flex: 1; min-width: 0; }
.chat-header-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}
.chat-header-status {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-pulse {
  width: 7px;
  height: 7px;
  background: #6ECB7C;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(110,203,124,0.6);
  animation: djc-pulse 2.2s infinite;
}
@keyframes djc-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(110,203,124,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(110,203,124,0); }
  100% { box-shadow: 0 0 0 0   rgba(110,203,124,0); }
}

.chat-restart {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 1px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.chat-restart:hover { color: var(--gold-lt); border-color: var(--gold); }

/* Messages */
.chat-messages {
  list-style: none;
  margin: 0;
  padding: 28px 22px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(184,136,58,0.4) transparent;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(184,136,58,0.4);
  border-radius: 3px;
}
.chat-messages::-webkit-scrollbar-track { background: transparent; }

.chat-msg { display: flex; max-width: 100%; animation: djc-msg-in 0.32s ease both; }
.chat-msg--bot  { justify-content: flex-start; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg--chips { justify-content: flex-start; }

@keyframes djc-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-bubble {
  max-width: 82%;
  padding: 13px 18px;
  font-size: 15px;
  line-height: 1.55;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-msg--bot .chat-bubble {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
  border-radius: 2px 14px 14px 14px;
  border-left: 2px solid var(--gold);
}

.chat-msg--user .chat-bubble {
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 14px 2px 14px 14px;
  font-weight: 500;
}

/* Typing dots */
.chat-msg--typing .chat-bubble { padding: 14px 18px; }
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
  animation: djc-typing 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes djc-typing {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

/* Chip choices */
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}
.chat-chip {
  background: transparent;
  border: 1px solid rgba(184,136,58,0.55);
  color: var(--gold-lt);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 9px 16px;
  cursor: pointer;
  border-radius: 1px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.chat-chip:hover:not(:disabled) {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.chat-chip.is-picked {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.chat-chip:disabled { opacity: 0.4; cursor: default; transform: none; }

/* Summary card */
.chat-summary {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.chat-summary li {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.chat-summary li:last-child { border-bottom: none; }
.chat-summary-k {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(184,136,58,0.85);
  font-weight: 600;
  padding-top: 2px;
}
.chat-summary-v {
  color: rgba(255,255,255,0.85);
  word-wrap: break-word;
  white-space: pre-wrap;
  line-height: 1.5;
}

/* Final "Conversation sent" row */
.chat-msg--final .chat-bubble {
  background: rgba(184,136,58,0.12);
  border-left: 2px solid var(--gold);
  color: var(--gold-lt);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.chat-tick {
  display: inline-block;
  margin-right: 8px;
  color: var(--gold);
  font-weight: 700;
}
.chat-msg--final a {
  color: var(--gold-lt);
  text-decoration: underline;
  margin-left: 6px;
}

/* Input bar */
.chat-input-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(9,27,46,0.65);
  border-top: 1px solid rgba(184,136,58,0.18);
  flex-shrink: 0;
}

.chat-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  padding: 11px 14px;
  border-radius: 2px;
  resize: none;
  max-height: 120px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-height: 44px;
}
.chat-input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.07);
}
.chat-input::placeholder { color: rgba(255,255,255,0.3); }
.chat-input:disabled {
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.3);
  cursor: not-allowed;
}

.chat-send {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  box-shadow: 0 8px 22px -10px rgba(184,136,58,0.55);
}
.chat-send:hover:not(:disabled) {
  background: var(--gold-lt);
  transform: translateY(-1px);
}
.chat-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.is-locked .chat-input { opacity: 0.6; }

/* Subtle shake when blank input is submitted */
.chat-shake { animation: djc-shake 0.4s cubic-bezier(.36,.07,.19,.97); }
@keyframes djc-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

/* Footnote below the chat */
.chat-footnote {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 900px) {
  .djc-chat { min-height: 520px; max-height: 640px; }
  .chat-header { padding: 14px 18px; }
  .chat-avatar { width: 38px; height: 38px; font-size: 16px; }
  .chat-messages { padding: 22px 16px; gap: 12px; }
  .chat-bubble { max-width: 90%; font-size: 14.5px; }
  .chat-summary li { grid-template-columns: 64px 1fr; gap: 10px; font-size: 12.5px; }
}
