/* ==========================================================================
   MCPFlow — "Midnight & Gold"
   Near-black, champagne gold, ivory. Bodoni for display, Jost for reading,
   Pinyon Script for small human accents. Photography in a warm duotone.
   ========================================================================== */

:root {
  --bg: #0d0c0a;
  --bg-2: #14120f;
  --surface: #1a1714;
  --surface-2: #221e19;
  --line: rgba(232, 205, 160, 0.14);
  --line-strong: rgba(232, 205, 160, 0.3);
  --text: #f3ece0;
  --text-soft: #cfc5b4;
  --muted: #9a907f;

  --gold: #d4a65a;
  --gold-light: #f2d29a;
  --gold-deep: #9a7032;
  --gold-gradient: linear-gradient(100deg, #b98a3e 0%, #f2d29a 45%, #d4a65a 70%, #a87a35 100%);
  --glow: rgba(212, 166, 90, 0.35);

  --stone: #ece5d8;
  --stone-2: #e0d6c5;
  --ink: #17140f;

  --display: "Sora", "Segoe UI", sans-serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.7, 0.12, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.booking-modal-open,
body.portfolio-modal-open,
body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 em,
h2 em,
.panel-title em {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  margin: 0;
}

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

.container {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(90px, 11vw, 150px) 0;
}

/* ---------- Type helpers ---------- */

.script-accent {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(212, 166, 90, 0.06);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gold-light);
}

.script-accent::before {
  content: ">";
  margin-right: 8px;
  color: var(--gold);
}

.script-accent::after {
  content: "";
  width: 7px;
  height: 1.05em;
  margin-left: 4px;
  background: var(--gold);
  animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.script-accent.dark {
  border-color: rgba(154, 112, 50, 0.4);
  background: rgba(154, 112, 50, 0.08);
  color: var(--gold-deep);
}

.script-accent.dark::before,
.script-accent.dark::after {
  color: var(--gold-deep);
  background-color: var(--gold-deep);
}

.script-accent.dark::before {
  background: none;
}

.script-accent.small {
  font-size: 0.76rem;
}

.kicker,
.sec-label,
.trust-label,
.mega-kicker {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.sec-label::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 14px;
  background: currentColor;
  vertical-align: middle;
}

.sec-head {
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 76px);
}

.sec-head h2 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4.2vw, 3.7rem);
}

.sec-head.center {
  margin-inline: auto;
  text-align: center;
}

.sec-head.center .sec-label::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 14px;
  background: currentColor;
  vertical-align: middle;
}

.sec-head.split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px 48px;
  max-width: none;
}

.sec-head.split > div {
  max-width: 720px;
}

.sec-sub {
  max-width: 60ch;
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.sec-head.center .sec-sub {
  margin-inline: auto;
}

.sec-sub.narrow {
  max-width: 42ch;
  margin-top: 0;
}

.sec-sub strong {
  color: var(--gold-light);
  font-weight: 500;
}

.section-action {
  margin-top: 56px;
}

.section-action.center {
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gold-gradient);
  background-size: 200% 100%;
  color: #1b150c;
  box-shadow: 0 10px 30px -10px var(--glow);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px -10px rgba(212, 166, 90, 0.6);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.portfolio-drive-btn {
  min-height: 60px;
  padding: 0 40px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(212, 166, 90, 0.55), 0 14px 36px -10px var(--glow);
  animation: drive-btn-pulse 2.4s ease-out infinite;
}

@keyframes drive-btn-pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 166, 90, 0.55), 0 14px 36px -10px var(--glow); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(212, 166, 90, 0), 0 14px 36px -10px var(--glow); }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-drive-btn { animation: none; }
}

@media (max-width: 560px) {
  .portfolio-drive-btn {
    max-width: 100%;
    padding: 12px 24px;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
  }
}

.btn-secondary {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 166, 90, 0.08);
}

.btn-dark {
  background: var(--ink);
  color: var(--stone);
}

.btn-dark:hover {
  background: #000;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5);
}

.btn-ghost,
.btn-outline {
  min-height: 0;
  padding: 6px 0;
  border-radius: 0;
  overflow: visible;
  color: var(--text);
  letter-spacing: 0.12em;
}

.btn-ghost::before,
.btn-outline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.btn-ghost:hover,
.btn-outline:hover {
  transform: none;
  color: var(--gold-light);
}

.btn-ghost:hover::before,
.btn-outline:hover::before {
  transform: scaleX(0.35);
  transform-origin: left;
}

.btn-ghost.dark {
  color: var(--ink);
}

.btn-ghost.dark::before {
  background: var(--gold-deep);
}

.btn-ghost.dark:hover {
  color: var(--gold-deep);
}

.text-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  white-space: nowrap;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--text);
}

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
}

.site-header.is-scrolled,
body:not(.home) .site-header {
  background: rgba(13, 12, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transition: transform 0.6s var(--ease);
}

.brand-glyph::before {
  content: "M";
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--gold-light);
}

.brand-glyph::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(212, 166, 90, 0.35);
  border-radius: 50%;
}

.brand:hover .brand-glyph {
  transform: rotate(-12deg) scale(1.05);
}

.brand-word {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-word em {
  font-weight: 400;
  color: var(--gold-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}

.main-nav > a,
.mega-trigger {
  position: relative;
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.main-nav > a::after,
.mega-trigger::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.main-nav > a:hover,
.mega-trigger:hover,
.mega-menu-item.is-open .mega-trigger {
  color: var(--text);
}

.main-nav > a:hover::after,
.mega-trigger:hover::after,
.mega-menu-item.is-open .mega-trigger::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.main-nav .nav-resume {
  color: var(--gold-light);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.nav-cta .btn {
  min-height: 44px;
  padding: 0 22px;
}

.nav-cta .nav-resume {
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  text-decoration: none;
}

.nav-cta .nav-resume:hover {
  color: var(--text);
}

@media (max-width: 1024px) {
  body:not(.home) .main-nav {
    display: none;
  }
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}

.nav-toggle-bars {
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  transform: translateX(-50%);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-open .nav-toggle-bars {
  background: transparent;
}

.nav-open .nav-toggle-bars::before {
  transform: translate(-50%, 6px) rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
  transform: translate(-50%, -6px) rotate(-45deg);
}

/* ---------- Mega menu ---------- */

.mega-menu-item {
  position: relative;
}

.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mega-chevron {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.mega-menu-item.is-open .mega-chevron {
  transform: translateY(1px) rotate(-135deg);
}

.mega-panel {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 70;
  width: min(1200px, calc(100vw - 32px));
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 32px 34px 34px;
  transform: translateX(-50%);
  background: rgba(20, 18, 15, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(212, 166, 90, 0.05);
  animation: menu-in 0.35s var(--ease) both;
}

@keyframes menu-in {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.mega-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.mega-panel-heading h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.mega-panel-heading p {
  max-width: 40ch;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.mega-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.mega-column h3 {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-deep);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.mega-link-list {
  display: grid;
  gap: 2px;
}

.mega-link {
  display: grid;
  gap: 3px;
  padding: 10px 10px;
  margin-inline: -10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.mega-link:hover,
.mega-link:focus-visible {
  background: rgba(212, 166, 90, 0.1);
}

.mega-link-label {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.mega-link-description {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.4;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 130px 0 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img,
.section-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.55);
}

.hero-bg::after,
.section-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 12, 10, 0.55) 0%, rgba(13, 12, 10, 0.2) 40%, var(--bg) 100%),
    linear-gradient(90deg, rgba(13, 12, 10, 0.92) 0%, rgba(13, 12, 10, 0.5) 55%, rgba(13, 12, 10, 0.75) 100%),
    rgba(150, 105, 40, 0.35);
  mix-blend-mode: normal;
}

.hero-bg img {
  transform: scale(1.08);
  animation: slow-zoom 20s ease-out forwards;
}

@keyframes slow-zoom {
  to { transform: scale(1); }
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(242, 210, 154, 0.16), transparent 65%);
  transition: background 0.2s;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.hero-copy .script-accent {
  margin-bottom: 22px;
  animation: fade-up 1s 0.1s var(--ease) both;
}

.kicker {
  margin-bottom: 26px;
  animation: fade-up 1s 0.2s var(--ease) both;
}

.hero-title {
  font-size: clamp(1.95rem, 4.3vw, 4.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  white-space: nowrap;
}

.hero-title .line > span {
  display: inline-block;
  animation: rise 1.2s var(--ease) both;
}

.hero-title .line:nth-child(1) > span { animation-delay: 0.25s; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.35s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.45s; }

@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: none; }
}

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

.hero-lead {
  max-width: 52ch;
  margin: 30px 0 36px;
  font-size: clamp(1.04rem, 1.3vw, 1.18rem);
  color: var(--text-soft);
  animation: fade-up 1s 0.6s var(--ease) both;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.hero .button-row {
  animation: fade-up 1s 0.7s var(--ease) both;
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 52px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  animation: fade-up 1s 0.85s var(--ease) both;
}

.proof-list dt {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--gold-light);
}

.proof-list dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Hero media */
.hero-figure {
  position: relative;
  margin: 0;
  animation: fade-up 1.2s 0.5s var(--ease) both;
}

.hero-media {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(242, 210, 154, 0.12), rgba(13, 12, 10, 0.4));
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 80px -20px var(--glow);
  backdrop-filter: blur(6px);
}

.hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: #07080b;
}

.hero-after {
  display: none;
}

.hero-media.is-done .hero-video {
  display: none;
}

.hero-media.is-done .hero-after {
  display: block;
  animation: develop 1s var(--ease) both;
}

@keyframes develop {
  from { opacity: 0; filter: blur(8px); transform: scale(0.98); }
  to { opacity: 1; filter: none; transform: none; }
}

.hero-panel {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 15%, rgba(242, 210, 154, 0.25), transparent 45%),
    linear-gradient(160deg, #1f1a14, #0f0d0b);
}

.panel-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.panel-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.05;
}

.panel-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.panel-flow span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-replay {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(13, 12, 10, 0.7);
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.hero-replay:hover {
  background: var(--gold);
  color: var(--bg);
}

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(20, 18, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  font-size: 0.85rem;
  color: var(--text-soft);
  animation: float 6s ease-in-out infinite;
}

.float-badge strong {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
  color: var(--gold-light);
}

.badge-top {
  top: -26px;
  left: -28px;
  max-width: 250px;
}

.badge-bottom {
  right: -18px;
  bottom: -24px;
  animation-delay: -3s;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fd38d;
  box-shadow: 0 0 0 0 rgba(95, 211, 141, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes float {
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(95, 211, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 211, 141, 0); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--gold);
  transform: translateX(-50%);
  animation: cue 1.8s var(--ease) infinite;
}

@keyframes cue {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---------- Capability bar ---------- */

.trust-bar {
  padding: 38px 0 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.trust-label {
  margin-bottom: 26px;
  text-align: center;
  color: var(--muted);
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.capabilities li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--text-soft);
  transition: color 0.3s;
}

.capabilities li + li {
  border-left: 1px solid var(--line);
}

.cap-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s;
}

.cap-icon svg,
.icon-ring svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capabilities li:hover {
  color: var(--gold-light);
}

.capabilities li:hover .cap-icon {
  transform: translateY(-4px) rotate(-8deg);
  background: var(--gold);
  color: var(--bg);
}

/* ---------- Work with me (light) ---------- */

.work-with-me {
  padding: clamp(90px, 11vw, 150px) 0;
  background: var(--stone);
  color: var(--ink);
  overflow: hidden;
}

.wwm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.wwm-visual {
  position: relative;
  border-radius: 4px;
  box-shadow: 30px 30px 0 -1px var(--stone-2);
}

.wwm-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(0.85) sepia(0.3) contrast(1.1) brightness(0.72);
}

.wwm-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(23, 20, 15, 0) 35%, rgba(23, 20, 15, 0.75) 100%);
  pointer-events: none;
}

.wwm-title {
  position: absolute;
  z-index: 1;
  left: 7%;
  bottom: 7%;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.4vw, 5.8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fbf7f0;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.wwm-copy .script-accent {
  margin-bottom: 18px;
}

.wwm-lead {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.wwm-copy > p:not(.wwm-lead):not(.script-accent) {
  color: #4b4337;
}

.wwm-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 40px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(23, 20, 15, 0.18);
  border-bottom: 1px solid rgba(23, 20, 15, 0.18);
}

.wwm-facts li {
  display: grid;
  padding: 20px 0;
}

.wwm-facts li + li {
  padding-left: 20px;
  border-left: 1px solid rgba(23, 20, 15, 0.18);
}

.wwm-facts strong {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-deep);
}

.wwm-facts span {
  margin-top: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d6455;
}

/* ---------- Glow cards (pointer-tracked) ---------- */

.glow-card {
  position: relative;
  isolation: isolate;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--cx, 50%) var(--cy, 0%), rgba(242, 210, 154, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.glow-card:hover::before {
  opacity: 1;
}

.icon-ring {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 30% 30%, rgba(242, 210, 154, 0.12), transparent 70%);
  transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}

.glow-card:hover .icon-ring {
  transform: rotate(-10deg) scale(1.06);
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

/* ---------- Industries ---------- */

.industry-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 24px;
  color: var(--text-soft);
}

.industry-pillars b {
  font-family: var(--display);
  font-weight: 500;
  color: var(--gold-light);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.industry-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease);
}

.industry-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(212, 166, 90, 0.12);
}

.industry-card h3 {
  margin-top: 8px;
  font-size: 1.45rem;
}

.industry-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Services ---------- */

.services {
  background: var(--bg-2);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.services-visual {
  position: sticky;
  top: 110px;
}

.services-photo {
  position: relative;
  overflow: hidden;
  border-radius: 200px 200px 18px 18px;
  border: 1px solid var(--line-strong);
}

.services-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1) sepia(0.35) brightness(0.75) contrast(1.1);
  transition: transform 1.2s var(--ease);
}

.services-photo:hover img {
  transform: scale(1.05);
}

.services-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13, 12, 10, 0.9));
}

.photo-caption {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 1;
}

.sec-head.left {
  margin-bottom: 36px;
}

.services-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.45s var(--ease);
}

.service-num {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--gold);
}

.service-row h3 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  transition: color 0.3s;
}

.service-row p {
  color: var(--muted);
}

.service-row:hover {
  padding-left: 14px;
}

.service-row:hover h3 {
  color: var(--gold-light);
}

/* ---------- Section photo backgrounds ---------- */

.system-section,
.stats-band,
.cta-block {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.section-photo::after {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(13, 12, 10, 0.72) 30%, rgba(13, 12, 10, 0.72) 70%, var(--bg) 100%),
    rgba(120, 85, 30, 0.3);
}

/* ---------- System ---------- */

.system-section {
  padding: clamp(90px, 11vw, 150px) 0;
}

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

.system-item {
  padding: 32px 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 18, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.45s var(--ease), border-color 0.3s;
}

.system-item:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.system-number {
  position: absolute;
  top: 30px;
  right: 28px;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--gold-deep);
}

.system-item h3 {
  margin: 26px 0 12px;
  font-size: 1.55rem;
}

.system-item p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Approach flow ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-step {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.45s var(--ease);
}

.flow-step:hover {
  transform: translateY(-6px);
}

.flow-num {
  font-family: var(--display);
  font-size: 4.2rem;
  line-height: 0.9;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flow-tag {
  margin-top: 18px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.flow-step h3 {
  margin: 14px 0 22px;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.flow-step ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.flow-step li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.96rem;
}

.flow-step li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.flow-step.is-featured {
  background: var(--gold-gradient);
  border-color: transparent;
  color: var(--ink);
  box-shadow: 0 40px 80px -40px var(--glow);
}

.flow-step.is-featured .flow-num {
  background: none;
  color: var(--ink);
}

.flow-step.is-featured .flow-tag {
  color: var(--ink);
}

.flow-step.is-featured li {
  color: #2d2418;
  border-top-color: rgba(23, 20, 15, 0.2);
}

.flow-step.is-featured li::before {
  border-color: var(--ink);
}

/* ---------- Portfolio ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(280px, 27vw, 380px);
  gap: 22px;
}

.portfolio-card {
  position: relative;
  grid-column: span 4;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.5s var(--ease);
}

.portfolio-card:nth-child(10n + 1),
.portfolio-card:nth-child(10n + 7) { grid-column: span 8; }
.portfolio-card:nth-child(10n + 2),
.portfolio-card:nth-child(10n + 8) { grid-column: span 4; }
.portfolio-card:last-child:nth-child(10n + 9) { grid-column: span 8; }

.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.9), 0 0 50px -25px var(--glow);
}

.portfolio-card-image {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.6s;
  filter: saturate(0.85) brightness(0.85);
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.07);
  filter: saturate(1) brightness(0.7);
}

.portfolio-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 12, 10, 0) 35%, rgba(13, 12, 10, 0.95) 100%);
}

.portfolio-category {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  max-width: calc(100% - 32px);
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(13, 12, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.portfolio-card-name {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.15;
  color: var(--text);
}

.portfolio-card-name::after {
  content: "View case study →";
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.portfolio-card:hover .portfolio-card-name::after,
.portfolio-card:focus-visible .portfolio-card-name::after {
  opacity: 1;
  transform: none;
}

/* Portfolio modal */
.portfolio-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 4, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s;
}

.portfolio-overlay[hidden] {
  display: none;
}

.portfolio-overlay.is-open {
  opacity: 1;
}

.portfolio-detail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--bg-2);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 80px -30px var(--glow);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.5s var(--ease);
}

.portfolio-overlay.is-open .portfolio-detail {
  transform: none;
}

.portfolio-detail:focus {
  outline: none;
}

.portfolio-close,
.booking-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(13, 12, 10, 0.7);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease);
}

.portfolio-close:hover,
.booking-close:hover {
  background: var(--gold);
  color: var(--bg);
  transform: rotate(90deg);
}

.portfolio-detail-visual {
  position: relative;
  min-height: 300px;
}

.portfolio-detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-detail-content {
  overflow-y: auto;
  padding: 48px 42px 40px;
}

.portfolio-detail-content h2 {
  padding-right: 40px;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.portfolio-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 10px;
}

.portfolio-metric {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--gold-gradient);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
}

.portfolio-story-block {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.portfolio-story-block h3 {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.portfolio-story-block p {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.portfolio-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-stack span {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ---------- Stats ---------- */

.stats-band {
  padding: clamp(90px, 10vw, 140px) 0 clamp(110px, 12vw, 160px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.stat-box + .stat-box {
  border-left: 1px solid var(--line);
}

.stat-box strong {
  font-family: var(--display);
  font-size: clamp(3.2rem, 6.5vw, 5.8rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-box b {
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.stat-context {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-trend-chart {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  width: 100%;
  height: 80px;
}

.stat-trend-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.6;
  vector-effect: non-scaling-stroke;
}

.stats-band.is-animated .stat-trend-line {
  transition: stroke-dashoffset 2.4s var(--ease);
  stroke-dashoffset: 0;
}

.stats-band:not(.stats-pending) .stat-trend-line {
  stroke-dashoffset: 0;
}

/* ---------- Process ---------- */

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light), var(--gold-deep));
  opacity: 0.6;
}

.process-step {
  position: relative;
}

.process-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--gold-light);
  transition: background-color 0.4s, color 0.4s, transform 0.5s var(--ease);
}

.process-step:hover .process-node {
  background: var(--gold);
  color: var(--bg);
  transform: scale(1.08);
}

.process-step h3 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Reviews ---------- */

.reviews {
  background: var(--bg-2);
}

.reviews-grid {
  columns: 3 300px;
  column-gap: 18px;
}

.review-card {
  position: relative;
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
  padding: 30px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.3s;
}

.review-card::after {
  content: "\201C";
  position: absolute;
  top: 10px;
  right: 22px;
  font-family: var(--display);
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(212, 166, 90, 0.1);
  pointer-events: none;
}

.review-card[hidden] {
  display: none;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.review-author-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
}

.review-tag {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.stars {
  font-size: 0.9rem;
  letter-spacing: 4px;
  color: var(--gold);
}

.review-card blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.review-disclaimer {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: 120px;
}

.faq-heading h2 {
  margin: 18px 0 0;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
}

.faq-heading .btn {
  margin-top: 34px;
}

.faq-groups {
  display: grid;
  gap: 52px;
}

.faq-group-heading {
  padding-bottom: 14px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--display);
  font-size: 1.18rem;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--gold-light);
}

.faq-toggle-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.45s var(--ease), background-color 0.3s, color 0.3s;
}

.faq-item.is-open .faq-toggle-icon {
  transform: rotate(135deg);
  background: var(--gold);
  color: var(--bg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  max-width: 62ch;
  padding: 0 54px 24px 0;
  color: var(--muted);
}

.faq-more-wrap {
  margin-top: 20px;
}

/* ---------- CTA ---------- */

.cta-block {
  padding: clamp(110px, 13vw, 190px) 0;
  text-align: center;
}

.cta-block .section-photo img {
  filter: grayscale(1) blur(2px) brightness(0.32);
}

.cta-block::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 70% at 50% 50%, rgba(212, 166, 90, 0.16), transparent 70%);
  pointer-events: none;
}

.cta-panel h2 {
  max-width: 18ch;
  margin: 22px auto 36px;
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
}

.cta-email {
  display: inline-block;
  margin-bottom: 48px;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.8vw, 2.2rem);
  text-decoration: none;
  color: var(--text-soft);
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat;
  padding-bottom: 6px;
  word-break: break-word;
  transition: color 0.3s, background-size 0.5s var(--ease);
}

.cta-email:hover {
  color: var(--gold-light);
  background-size: 40% 1px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 22px;
}

/* ---------- Booking modal ---------- */

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 4, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.booking-modal[hidden] {
  display: none;
}

.booking-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 40px 38px 36px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 210, 154, 0.1), transparent 40%),
    var(--bg-2);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9);
  animation: fade-up 0.45s var(--ease) both;
}

.booking-header h2 {
  margin: 4px 0 24px;
  font-size: clamp(2rem, 4.4vw, 2.8rem);
}

.booking-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 26px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.booking-tab {
  padding: 11px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.booking-tab.is-active {
  background: var(--gold-gradient);
  color: var(--ink);
}

.booking-form {
  display: grid;
  gap: 18px;
}

.booking-form[hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 4px;
}

.field > span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.3s;
}

.field select option {
  background: var(--bg-2);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6f675b;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--gold-light);
}

.field input[type="date"] {
  color-scheme: dark;
}

.field textarea {
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.timezone-note {
  padding: 12px 16px;
  border-left: 2px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(212, 166, 90, 0.07);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.booking-submit {
  justify-self: start;
  margin-top: 6px;
}

/* ---------- Footer ---------- */

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

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
  padding-bottom: 40px;
}

.footer-links,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.footer-links a,
.footer-meta a {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

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

/* ---------- Sub-pages ---------- */

.reviews-page-content,
.resume-page-content {
  padding: clamp(56px, 7vw, 100px) 0 clamp(80px, 9vw, 120px);
}

.reviews-page .reviews {
  background: transparent;
}

.reviews-page .sec-head h1 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.resume-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto 30px;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.resume-sheet {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 6px;
  background: #f7f2e9;
  color: var(--ink);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(212, 166, 90, 0.3);
}

.resume-head {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--gold-deep);
}

.resume-head h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.95;
}

.resume-role {
  margin: 16px 0 10px;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
}

.resume-contact {
  color: #5a5245;
  font-size: 0.95rem;
}

.resume-contact a {
  color: var(--ink);
}

.resume-sheet h2 {
  margin: 36px 0 14px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.resume-sheet p {
  margin: 0 0 10px;
  line-height: 1.65;
}

.resume-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-skills li {
  padding: 5px 12px;
  border: 1px solid rgba(154, 112, 50, 0.45);
  border-radius: 999px;
  font-size: 0.82rem;
}

.resume-case {
  padding: 20px 0;
  border-top: 1px solid rgba(23, 20, 15, 0.12);
}

.resume-case h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.resume-case strong {
  font-weight: 600;
  color: var(--gold-deep);
}

.resume-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.75;
}

.resume-cta {
  margin-top: 30px !important;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 1.2rem;
}

@media print {
  .scroll-progress,
  .resume-page .site-header,
  .resume-page .site-footer,
  .resume-page .resume-toolbar {
    display: none;
  }

  body,
  .resume-page-content {
    padding: 0;
    background: #fff;
  }

  .resume-page .resume-sheet {
    max-width: none;
    padding: 0;
    box-shadow: none;
    background: #fff;
  }

  .resume-case {
    break-inside: avoid;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .mega-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .main-nav {
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
    order: 3;
  }

  .nav-cta {
    margin-left: auto;
  }

  .home .main-nav {
    position: fixed;
    inset: 80px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 12px var(--gutter) 28px;
    background: rgba(13, 12, 10, 0.98);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s;
  }

  .nav-open.home .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav > a,
  .mega-trigger {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 1.4rem;
    color: var(--text);
    text-align: left;
    justify-content: space-between;
  }

  .main-nav > a::after,
  .mega-trigger::after {
    display: none;
  }

  .mega-panel {
    position: static;
    width: auto;
    max-height: none;
    transform: none;
    margin: 8px 0 12px;
    padding: 20px;
    animation: none;
  }

  .mega-panel-heading {
    display: none;
  }

  .hero-grid,
  .wwm-grid,
  .services-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 120px;
  }

  .hero-figure {
    max-width: 640px;
  }

  .services-visual,
  .faq-heading {
    position: static;
  }

  .services-photo {
    max-width: 420px;
  }

  .services-photo img {
    aspect-ratio: 4 / 3;
  }

  .system-grid,
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-card,
  .portfolio-card:nth-child(n) {
    grid-column: span 6;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 54px;
  }

  .stat-box:nth-child(3) {
    border-left: 0;
  }

  .process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 50px;
  }

  .process-track::before {
    display: none;
  }

  .portfolio-detail {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .portfolio-detail-visual {
    min-height: 220px;
    max-height: 280px;
  }

  .portfolio-detail-content {
    overflow: visible;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav-cta .btn {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.72rem;
  }

  .brand-word {
    font-size: 1.2rem;
  }

  .float-badge {
    display: none;
  }

  .proof-list,
  .wwm-facts {
    grid-template-columns: 1fr;
  }

  .wwm-facts li + li {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(23, 20, 15, 0.18);
  }

  .capabilities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 26px;
  }

  .capabilities li:nth-child(4) {
    border-left: 0;
  }

  .industries-grid,
  .system-grid,
  .flow,
  .process-track {
    grid-template-columns: 1fr;
  }

  .portfolio-card,
  .portfolio-card:nth-child(n) {
    grid-column: 1 / -1;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-box {
    padding: 0 10px;
  }

  .mega-columns {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    padding: 34px 22px 26px;
  }

  .hero .button-row .btn:not(.btn-ghost),
  .cta-actions .btn:not(.btn-ghost) {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }
}

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

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

/* ==========================================================================
   Section & page themes — one warm palette, gold ties them together.
   Each theme redefines the colour tokens, so every component inside
   (cards, lines, buttons, labels) adapts automatically.
   ========================================================================== */

[class*="theme-"] {
  background: var(--section-bg);
  color: var(--text);
}

.theme-espresso {
  --section-bg: #1c1410;
  --bg: #1c1410;
  --bg-2: #17100c;
  --surface: #271c16;
  --surface-2: #30231b;
  --line: rgba(232, 205, 160, 0.13);
  --line-strong: rgba(232, 205, 160, 0.28);
}

.theme-olive {
  --section-bg: #161a12;
  --bg: #161a12;
  --bg-2: #12160e;
  --surface: #20251a;
  --surface-2: #282e21;
  --line: rgba(222, 214, 170, 0.13);
  --line-strong: rgba(222, 214, 170, 0.28);
}

.theme-wine {
  --section-bg: #1d0f15;
  --bg: #1d0f15;
  --bg-2: #170b10;
  --surface: #2a161f;
  --surface-2: #341c27;
  --line: rgba(240, 200, 170, 0.13);
  --line-strong: rgba(240, 200, 170, 0.28);
}

/* Light themes: ink text and a deeper gold so contrast holds. */
.theme-cream {
  --section-bg: #f3ecdf;
  --bg: #f3ecdf;
  --bg-2: #ebe2d1;
  --surface: #fbf7f0;
  --surface-2: #ffffff;
  --text: #17140f;
  --text-soft: #3f382d;
  --muted: #6d6455;
  --line: rgba(23, 20, 15, 0.12);
  --line-strong: rgba(23, 20, 15, 0.26);
  --gold: #9a6a26;
  --gold-light: #7f561c;
  --gold-gradient: linear-gradient(100deg, #8a5c1f 0%, #b8873c 50%, #8a5c1f 100%);
  --glow: rgba(154, 106, 38, 0.25);
}

.theme-cream .review-card {
  box-shadow: 0 18px 40px -28px rgba(60, 40, 10, 0.35);
}

.theme-cream .review-card::after {
  color: rgba(154, 106, 38, 0.14);
}

.theme-cream .btn-primary {
  color: #fff8ec;
}

/* Gold band: ink on gold. */
.theme-gold {
  --section-bg: linear-gradient(100deg, #b98a3e 0%, #e9c789 45%, #d4a65a 70%, #b0823a 100%);
  --text: #17140f;
  --muted: #4a3a20;
  --line: rgba(23, 20, 15, 0.22);
  --gold: #17140f;
  --gold-gradient: linear-gradient(#17140f, #17140f);
}

.theme-gold .section-photo {
  display: none;
}

.theme-gold .stat-trend-line {
  opacity: 0.45;
}

/* Sub-pages */
body.theme-wine,
body.theme-cream {
  background: var(--section-bg);
}

body.theme-cream .site-footer {
  background: var(--bg-2);
}

body.theme-wine .site-footer {
  background: var(--bg-2);
}

/* The header and menus keep their dark tokens on every page. */
.site-header,
.booking-modal,
.portfolio-overlay {
  --text: #f3ece0;
  --text-soft: #cfc5b4;
  --muted: #9a907f;
  --line: rgba(232, 205, 160, 0.14);
  --line-strong: rgba(232, 205, 160, 0.3);
  --gold: #d4a65a;
  --gold-light: #f2d29a;
  --gold-deep: #9a7032;
  --gold-gradient: linear-gradient(100deg, #b98a3e 0%, #f2d29a 45%, #d4a65a 70%, #a87a35 100%);
  --bg: #0d0c0a;
  --bg-2: #14120f;
  --surface: #1a1714;
  color: var(--text);
}

body:not(.home) .site-header {
  background: rgba(13, 12, 10, 0.96);
}

.site-header .btn-primary,
.booking-modal .btn-primary {
  color: #1b150c;
}

/* ==========================================================================
   Personal photos — shown exactly as supplied (no filters).
   ========================================================================== */

/* Hero: reserve the portrait's space so nothing jumps when it appears. */
.hero-figure {
  justify-self: end;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: min(540px, calc((100svh - 230px) * 0.75));
  aspect-ratio: 3 / 4;
}

.hero-media {
  width: 100%;
}

.hero-portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.hero-media.is-done {
  animation: frame-flash 1.2s var(--ease) both;
}

.hero-media.is-done .hero-after {
  position: relative;
  animation: portrait-pop 0.75s cubic-bezier(0.2, 1.3, 0.35, 1) both;
}

@keyframes portrait-pop {
  0% { opacity: 0; transform: scale(0.88); }
  60% { opacity: 1; transform: scale(1.025); }
  100% { opacity: 1; transform: none; }
}

@keyframes frame-flash {
  0% { box-shadow: 0 0 0 0 rgba(242, 210, 154, 0.7), 0 50px 100px -40px rgba(0, 0, 0, 0.9); }
  100% { box-shadow: 0 0 0 26px rgba(242, 210, 154, 0), 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 80px -20px var(--glow); }
}

.hero-portrait-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  gap: 2px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(13, 12, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-portrait-caption strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
}

.hero-portrait-caption span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gold-light);
}

.hero-media .badge-bottom {
  bottom: 84px;
}

/* Work with me: real portrait, unfiltered; title sits off the photo's edge. */
.wwm-visual img {
  filter: none;
}

.wwm-visual::after {
  display: none;
}

.wwm-title {
  left: auto;
  right: -10%;
  bottom: -0.55em;
  color: var(--ink);
  text-shadow: none;
}

.wwm-title::first-line {
  color: var(--gold-deep);
}

/* Services: real photo, unfiltered. */
.services-photo img {
  filter: none;
}

.services-photo::after {
  display: none;
}

.services-photo .script-accent {
  background: rgba(13, 12, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* FAQ: talk-to-me card */
.consult-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 34px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.consult-card img {
  width: 112px;
  height: auto;
  border-radius: 12px;
}

.consult-name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
}

.consult-note {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-heading .consult-card .btn {
  margin-top: 0;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.72rem;
}

/* Resume: photo beside the name */
.resume-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 32px;
}

.resume-head > *:not(.resume-photo) {
  grid-column: 1;
}

.resume-photo {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  width: 150px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6);
}

@media (max-width: 1024px) {
  .hero-figure {
    justify-self: start;
    max-width: 520px;
    aspect-ratio: auto;
  }

  .wwm-title {
    right: 4%;
  }
}

@media (max-width: 720px) {
  .resume-head {
    grid-template-columns: 1fr;
  }

  .resume-photo {
    grid-column: 1;
    grid-row: auto;
    width: 120px;
    margin-bottom: 18px;
  }

  .consult-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .consult-card img {
    width: 84px;
  }
}

@media print {
  .resume-photo {
    width: 110px;
    box-shadow: none;
  }
}

/* Stop the slanted gold words losing their last letter. */
h1 em,
h2 em,
.panel-title em {
  padding-right: 0.1em;
  margin-right: -0.04em;
}

h1 em,
h2 em,
.panel-title em {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ==========================================================================
   Scroll reveals: slide in from the right, or zoom out from the centre.
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transition:
    opacity 0.9s var(--ease),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s var(--ease);
  will-change: opacity, transform;
}

.js .reveal[data-reveal="right"] {
  transform: translateX(110px);
}

.js .reveal[data-reveal="zoom"] {
  transform: scale(0.8);
  filter: blur(8px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Keep the slide-ins from creating a sideways scrollbar. */
main > section {
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal[data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* FAQ questions are real headings (for search/answer engines) but look unchanged. */
.faq-question-heading {
  margin: 0;
  font: inherit;
  letter-spacing: normal;
  line-height: inherit;
}

.footer-about {
  max-width: 78ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-about strong {
  color: var(--text-soft);
  font-weight: 500;
}
