/*
Theme Name: Matthew Buxton Portfolio
Theme URI: https://matthewbuxton.dev
Author: Matthew Buxton
Author URI: https://matthewbuxton.dev
Description: Single-page portfolio theme. Obsidian Ethereal design system - glassmorphism layered over a deep obsidian base with a disciplined orange primary. Sections: hero, about, past projects, capabilities, quote, FAQs and contact.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: matthew-buxton-portfolio
Tags: one-column, custom-logo, featured-images, full-width-template, translation-ready
*/

:root {
  --bg: #131313;
  --bg-deep: #0e0e0e;
  --bg-low: #1c1b1b;
  --bg-mid: #201f1f;
  --bg-high: #2a2a2a;
  --bg-highest: #353534;
  --text: #e5e2e1;
  --text-muted: #c9c6c4;
  --text-faint: #8f8c8a;
  --outline: #a48c7a;
  --outline-var: #564334;
  --primary: #ffb77d;
  --on-primary: #4d2600;
  --primary-container: #ff8c00;
  --on-primary-container: #623200;
  --tertiary: #85cfff;
  --secondary: #c6c6c7;
  --error: #ffb4ab;
  --error-container: #93000a;

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-soft: rgba(255, 255, 255, 0.08);
  --glass-top: rgba(255, 255, 255, 0.2);

  --font-display: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-full: 999px;

  --container: 1200px;
  --gutter: 24px;
  --margin-mobile: 20px;
  --section-gap: 160px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 96px;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button,
[role="button"] {
  touch-action: manipulation;
}

section[id] {
  scroll-margin-top: 84px;
}

body.modal-open {
  overflow: hidden;
}

img,
svg,
iframe {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: var(--primary);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 16px;
  border-radius: var(--r-sm);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.headline-md {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

.body-lg {
  font-size: 18px;
  line-height: 1.6;
}

.body-md {
  font-size: 16px;
  line-height: 1.6;
}

.code-sm {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
}

.label-caps {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-top);
}

.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-top);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  border-color: rgba(255, 183, 125, 0.5);
  background: rgba(255, 140, 0, 0.06);
  color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  color: #000;
}

.btn-accent {
  border-color: rgba(255, 140, 0, 0.6);
  color: var(--primary-container);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--primary-container);
  border-color: var(--primary-container);
  color: var(--on-primary);
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

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

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--glass-border-soft);
  background: rgba(19, 19, 19, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(19, 19, 19, 0.85);
}

.site-logo {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--text);
}

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

.nav-actions .btn {
  padding: 9px 18px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-7px) rotate(-45deg);
}

.vibe-chip {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.vibe-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

.vibe-option[aria-pressed="true"] {
  background: var(--glass-bg-strong);
  color: var(--text);
}

.vibe-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.9;
}

.vibe-option[data-vibe="mysterious"] .vibe-dot {
  background: #8f8c8a;
}

.vibe-option[data-vibe="professional"] .vibe-dot {
  background: #333333;
}

.vibe-option[data-vibe="warm"] .vibe-dot {
  background: #e07b39;
}

.vibe-option[data-vibe="poppy"] .vibe-dot {
  background: #ff2e88;
}

@media (max-width: 1150px) {
  .vibe-chip {
    gap: 1px;
    padding: 2px;
  }

  .vibe-option {
    padding: 5px 7px;
  }

  .vibe-label {
    display: none;
  }

  .vibe-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .site-nav {
    padding: 0 12px;
  }

  .site-logo {
    font-size: 16px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn {
    padding: 8px 12px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .vibe-option {
    padding: 4px 6px;
  }

  .vibe-dot {
    width: 9px;
    height: 9px;
  }
}

.vibe-scroll-prompt {
  position: fixed;
  bottom: 104px;
  left: 50%;
  transform: translate(-50%, 16px);
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.vibe-scroll-prompt.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.vibe-scroll-prompt svg {
  animation: float-down 1.8s ease-in-out infinite;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 899px) {
  .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 20px 24px;
    background: rgba(19, 19, 19, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 10px 0;
    width: 100%;
  }
}

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #0e0e0e;
  --font-display: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --text: #e5e2e1;
  --text-muted: #c9c6c4;
  --text-faint: #8f8c8a;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: transform;
}

.hero-media .hero-smoke {
  display: block;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
  filter: grayscale(100%) contrast(1.2);
  transform: scale(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  mix-blend-mode: difference;
  color: #ffffff;
}

.hero-title {
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  will-change: letter-spacing, opacity;
}

.hero-title-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  color: transparent;
}

.hero-tagline {
  position: absolute;
  bottom: 96px;
  right: 24px;
  z-index: 10;
  color: var(--text);
  opacity: 0.85;
  mix-blend-mode: difference;
  color: #ffffff;
}

.hero-tagline em {
  font-style: italic;
}

@media (min-width: 768px) {
  .hero-tagline {
    right: var(--gutter);
    bottom: 40px;
  }
}

.hero-gate {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hero-gate svg {
  animation: float-down 1.8s ease-in-out infinite;
}

@keyframes float-down {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

.about {
  position: relative;
  z-index: 20;
  background: var(--bg);
  border-top: 1px solid var(--glass-border-soft);
}

.about-beams {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.beam {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 183, 125, 0.09) 0%, rgba(255, 183, 125, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}

.beam-1 {
  top: -140px;
  left: -120px;
}

.beam-2 {
  bottom: -180px;
  right: 8%;
  background: radial-gradient(circle, rgba(133, 207, 255, 0.07) 0%, rgba(133, 207, 255, 0) 70%);
}

.about-inner {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 96px;
}

@media (min-width: 900px) {
  .about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

.about-title {
  margin: 0 0 24px;
  flex-shrink: 0;
}

.about-paragraphs {
  position: relative;
  min-height: 400vh;
}

.para-block {
  min-height: 0;
  will-change: transform, opacity;
}

.para-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-stage {
  position: sticky;
  top: 120px;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
}

.about-stack {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
  overflow: hidden;
}

.para-inner p {
  margin: 0;
  color: var(--text-muted);
}

.para-inner em {
  color: var(--text);
}

.para-block .btn {
  margin-top: 32px;
  align-self: flex-start;
}

.about-visual {
  display: none;
}

@media (min-width: 900px) {
  .about-visual {
    display: block;
    position: relative;
  }

  .about-frame {
    position: sticky;
    top: 24vh;
    height: 58vh;
    width: 100%;
    border-radius: var(--r-xl);
    overflow: hidden;
  }

  .about-cube {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
  }

  .cube-stage {
    --cube-size: 40vh;
    --cube-ry: 0deg;
    position: relative;
    width: var(--cube-size);
    height: var(--cube-size);
    transform-style: preserve-3d;
    transform: rotateX(-9deg) rotateY(var(--cube-ry));
    will-change: transform;
  }

  .cube-face {
    position: absolute;
    inset: 0;
    transform: rotateY(var(--face-ry, 0deg)) translateZ(calc(var(--cube-size) / 2));
    backface-visibility: hidden;
    border: 1.5px solid var(--text);
  }

  .cube-face[data-face="0"] { --face-ry: 0deg; }
  .cube-face[data-face="1"] { --face-ry: 90deg; }
  .cube-face[data-face="2"] { --face-ry: 180deg; }
  .cube-face[data-face="3"] { --face-ry: 270deg; }
  .cube-face[data-face="4"] {
    --face-ry: 0deg;
    transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2));
  }

  .cube-face.cube-top {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text);
  }

  .cube-face .cube-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cube-face[data-face="0"] .cube-img,
  .cube-face[data-face="1"] .cube-img,
  .cube-face[data-face="2"] .cube-img {
    filter: grayscale(1);
  }
}

.projects {
  position: relative;
}

.projects-title {
  position: sticky;
  top: 64px;
  z-index: 40;
  margin: 0;
  padding: 24px;
  text-align: center;
  font-weight: 800;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.project {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.project-stage {
  position: absolute;
  inset: 0;
}

.project-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.project-image .mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.6s ease;
}

.project-image .project-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 899px) {
  .project-shot {
    object-fit: contain;
    object-position: center;
  }
}

.project-slide-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--bg);
  will-change: transform;
}

.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 2;
  background: var(--bg);
  will-change: transform;
}

.door-l {
  left: 0;
  border-right: 1px solid var(--glass-border-soft);
}

.door-r {
  right: 0;
  border-left: 1px solid var(--glass-border-soft);
}

.door-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-faint);
}

.project-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: min(640px, 90%);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-radius: var(--r-xl);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card h2 {
  margin: 0;
  color: var(--text);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
}

.project-card p {
  margin: 0;
  max-width: 480px;
  color: var(--text-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-full);
  padding: 6px 14px;
  color: var(--text);
}

.chip-option {
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chip-option input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chip-option .chip-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--text-faint);
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chip-option .chip-check .icon {
  width: 13px;
  height: 13px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.chip-option input[type="checkbox"]:checked + .chip-check {
  background: var(--primary);
  border-color: var(--primary);
}

.chip-option input[type="checkbox"]:checked + .chip-check .icon {
  opacity: 1;
  stroke: var(--on-primary);
}

.chip-option:has(input[type="checkbox"]:checked) {
  border-color: var(--primary);
  background: var(--glass-bg-strong);
}

.chip-option:has(input[type="checkbox"]:focus-visible) {
  border-color: var(--primary);
}

.project-cta {
  position: absolute;
  z-index: 6;
  display: flex;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-cta.visible {
  opacity: 1;
}

.project-cta .btn {
  padding: 10px 20px;
}

.pointer {
  position: absolute;
  bottom: 28px;
  right: 24px;
  z-index: 6;
}

.pos-bl {
  position: absolute;
  bottom: 28px;
  left: 24px;
  right: auto;
  top: auto;
}

.pos-br {
  position: absolute;
  bottom: 28px;
  right: 24px;
  left: auto;
  top: auto;
}

.pointer-top {
  bottom: auto;
  top: 28px;
  right: 24px;
}

.cta-scroll-up {
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  bottom: auto;
  right: auto;
}

@media (min-width: 768px) {
  .pointer {
    right: var(--gutter);
  }
}

@media (max-width: 767px) {
  .pos-bl,
  .pos-br,
  .pointer {
    bottom: 104px;
  }

  .cta-scroll-up {
    top: 24px;
  }
}

.capabilities-wrap {
  position: relative;
  height: 240vh;
}

.capabilities {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.capabilities-heading {
  text-align: center;
  margin: 0;
  padding: 96px 16px 16px;
  z-index: 5;
  position: relative;
}

.cap-field {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--container);
}

.cap-card {
  position: absolute;
  top: 0;
  left: 0;
  padding: 14px 22px;
  border-radius: var(--r-xl);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  will-change: transform, opacity;
  transform: translateY(24px) scale(0.92);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.cap-card.spawned {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cap-card.fly {
  transition: transform 0.7s cubic-bezier(0.5, 0, 0.75, 0.4), opacity 0.7s ease;
  transform: translateY(-120vh) scale(0.8);
  opacity: 0;
}

.quote {
  position: relative;
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.quote-title {
  margin: 0 0 48px;
}

.quote-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
}

@media (min-width: 900px) {
  .quote-card {
    flex-direction: row;
  }
}

.quote-half {
  flex: 1;
  padding: 56px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

@media (min-width: 768px) {
  .quote-half {
    padding: 72px 56px;
  }
}

.quote-half + .quote-half {
  border-top: 1px solid var(--glass-border);
}

@media (min-width: 900px) {
  .quote-half + .quote-half {
    border-top: 0;
    border-left: 1px solid var(--glass-border);
  }
}

.quote-half h3 {
  margin: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-half p {
  margin: 0;
  color: var(--text-muted);
  max-width: 460px;
}

.quote-half .btn {
  margin-top: 8px;
}

.faq {
  padding-bottom: var(--section-gap);
}

.faq-title {
  margin: 0 0 48px;
}

.faq-item {
  border-bottom: 1px solid var(--glass-border-soft);
  cursor: pointer;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 28px 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover,
.faq-item[open] summary {
  color: var(--text);
}

.faq-item summary .faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item[open] summary .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding-bottom: 28px;
  max-width: 720px;
  color: var(--text-muted);
}

.faq-answer p {
  margin: 0;
}

.contact {
  padding-bottom: var(--section-gap);
}

.contact-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  overflow: hidden;
}

@media (min-width: 900px) {
  .contact-card {
    flex-direction: row;
    min-height: 640px;
  }
}

.contact-info {
  flex: 1;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .contact-info {
    padding: 64px 64px;
  }
}

.contact-title {
  margin: 0 0 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.contact-detail .icon {
  color: var(--primary);
}

.contact-detail span.tbc {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.field-input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field-input:focus {
  border-color: var(--primary);
}

.field-input::placeholder {
  color: var(--text-faint);
}

select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f8c8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea.field-input {
  resize: vertical;
  min-height: 120px;
}

.contact-media {
  position: relative;
  min-height: 300px;
  border-top: 1px solid var(--glass-border);
}

@media (min-width: 900px) {
  .contact-media {
    flex: 1;
    min-height: 100%;
    border-top: 0;
    border-left: 1px solid var(--glass-border);
  }
}

.contact-media .contact-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 899px) {
  .contact-card {
    flex-direction: column-reverse;
  }

  .contact-media {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-top: 0;
    border-bottom: 1px solid var(--glass-border);
  }
}

.site-footer {
  border-top: 1px solid var(--glass-border-soft);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-logo svg {
  color: var(--primary);
}

.copyright {
  margin: 0;
  color: var(--text-faint);
  font-size: 14px;
  text-align: center;
}

.footer-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text-faint);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--text);
}

.enquire-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(92%, 560px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--r-full);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.enquire-bar .field-input {
  flex: 1;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  padding: 12px 18px;
}

.enquire-bar .btn {
  padding: 12px 22px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .enquire-bar .btn {
    padding: 12px 16px;
    letter-spacing: 0.04em;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-xl);
  box-shadow: 0 0 80px rgba(255, 183, 125, 0.06);
  position: relative;
  animation: modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-wide {
  max-width: 980px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--glass-border-soft);
}

.modal-head h3 {
  margin: 0;
  color: var(--text);
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-full);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--text);
  color: #000;
}

.modal-body {
  padding: 24px;
}

@media (min-width: 768px) {
  .modal-body {
    padding: 32px;
  }
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-success {
  display: none;
  text-align: center;
  padding: 32px 8px;
}

.modal-success.show {
  display: block;
}

.modal-success .icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 16px;
}

.ai-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 900px) {
  .ai-layout {
    flex-direction: row;
  }

  .ai-chat {
    flex: 1;
    border-right: 1px solid var(--glass-border-soft);
  }

  .ai-panel {
    width: 320px;
  }
}

.ai-chat {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  max-height: 46vh;
}

@media (min-width: 900px) {
  .ai-messages {
    max-height: 52vh;
  }
}

.ai-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 92%;
  animation: msg-in 0.3s ease;
}

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

.ai-msg.bot {
  align-self: flex-start;
}

.ai-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  color: var(--primary);
  flex-shrink: 0;
}

.ai-bubble {
  padding: 12px 16px;
  border-radius: var(--r-xl);
  font-size: 14px;
  line-height: 1.6;
}

.ai-bubble > :first-child {
  margin-top: 0;
}

.ai-bubble > :last-child {
  margin-bottom: 0;
}

.ai-bubble p {
  margin: 0 0 10px;
}

.ai-bubble ul,
.ai-bubble ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

.ai-bubble li {
  margin: 4px 0;
}

.ai-bubble h1,
.ai-bubble h2,
.ai-bubble h3,
.ai-bubble h4,
.ai-bubble h5,
.ai-bubble h6 {
  margin: 14px 0 8px;
  color: var(--text);
  line-height: 1.3;
}

.ai-bubble h1 {
  font-size: 18px;
}

.ai-bubble h2 {
  font-size: 16px;
}

.ai-bubble h3,
.ai-bubble h4,
.ai-bubble h5,
.ai-bubble h6 {
  font-size: 14px;
}

.ai-bubble code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--r-sm);
  padding: 1px 5px;
}

.ai-bubble a {
  color: var(--primary);
  text-decoration: underline;
}

.ai-bubble blockquote {
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 2px solid var(--glass-border);
  color: var(--text-faint);
}

.ai-msg.bot .ai-bubble {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-soft);
  color: var(--text-muted);
  border-top-left-radius: var(--r-sm);
}

.ai-msg.user .ai-bubble {
  background: rgba(255, 140, 0, 0.16);
  border: 1px solid rgba(255, 140, 0, 0.3);
  color: var(--text);
  border-top-right-radius: var(--r-sm);
}

.ai-typing {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.ai-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: typing-bounce 1.2s infinite ease-in-out;
}

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

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

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.ai-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--glass-border-soft);
}

.ai-input-bar .field-input {
  flex: 1;
  border-radius: var(--r-full);
  background: var(--glass-bg);
}

.ai-input-bar .send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--primary);
  color: var(--on-primary);
  transition: transform 0.15s ease, filter 0.2s ease;
}

.ai-input-bar .send:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.ai-panel {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--glass-border-soft);
}

@media (min-width: 900px) {
  .ai-panel {
    border-top: 0;
  }
}

.ai-panel h4 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.info-chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.info-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.info-chip:hover,
.info-chip.filled {
  border-color: rgba(255, 183, 125, 0.5);
}

.info-chip .icon {
  width: 16px;
  height: 16px;
  color: var(--text-faint);
}

.info-chip.filled .icon {
  color: var(--primary);
}

.info-chip-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  min-width: 74px;
}

.info-chip-value {
  font-size: 13px;
  color: var(--text);
  flex: 1;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.info-chip-value.placeholder {
  color: var(--text-faint);
  font-style: italic;
}

.info-chip.editing .info-chip-value {
  display: none;
}

.info-chip-edit {
  display: none;
  flex: 1;
  min-width: 0;
}

.info-chip.editing .info-chip-edit {
  display: block;
}

.swatches {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.color-tool-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.color-tool-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.color-tool {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  z-index: 999;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.color-tool.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.color-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.color-tool-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 46vh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.color-tool-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-tool-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex: 1;
}

.color-tool-input {
  width: 40px;
  height: 34px;
  padding: 2px;
  border-radius: var(--r-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  cursor: pointer;
}

.color-tool-hex {
  width: 92px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  padding: 7px 10px;
}

.color-tool-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.color-tool-actions .btn {
  flex: 1;
}

.chip-toolbar {
  padding-top: 20px;
  border-top: 1px solid var(--glass-border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chip-toolbar .btn {
  width: 100%;
}

.ai-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.ai-option {
  text-align: left;
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ai-option:hover {
  border-color: rgba(255, 183, 125, 0.5);
  background: var(--glass-bg-strong);
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-soft);
  font-size: 14px;
}

.summary-item .label {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-item .value {
  color: var(--text);
  text-align: right;
}

.pricing {
  border-radius: var(--r-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 20px;
  margin-bottom: 24px;
}

.pricing-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--glass-border-soft);
}

.pricing-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  font-size: 18px;
  color: var(--text);
}

.pricing-total strong {
  color: var(--primary);
  font-size: 24px;
}

.pricing-note {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-faint);
  margin-top: 12px;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 600px) {
  .summary-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.summary-actions .btn {
  flex: 1;
  min-width: 200px;
}

.privacy-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.privacy-body h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.privacy-body p,
.privacy-body li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.privacy-body ul {
  padding-left: 20px;
  margin: 0;
}

.privacy-body .disclaimer {
  border: 1px solid rgba(255, 183, 125, 0.35);
  background: rgba(255, 140, 0, 0.06);
  border-radius: var(--r-lg);
  padding: 16px;
}

.pix {
  position: fixed;
  pointer-events: none;
  will-change: transform, opacity;
}

.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   SECTION VIBES
   Each major section is a complete, distinct design direction
   that still flows within one scroll:
   - clean  (About, Quote)  light, crisp, professional, blue
   - poppy  (Projects, Contact) bright, playful, solid colours
   - cosy   (Capabilities, FAQ) warm cream, serif, inviting

   The site-nav, enquire bar and footer re-skin live via
   body[data-vibe] as the user scrolls.
   ============================================================ */

/* Smooth chrome transitions between vibes */
.site-nav,
.site-logo,
.nav-links a,
.nav-actions .btn,
.nav-toggle,
.enquire-bar,
.enquire-bar .btn,
.enquire-bar .field-input,
.site-footer,
.footer-logo,
.footer-link {
  transition:
    background-color 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    border-width 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    font-size 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.15s ease;
}

.nav-toggle span {
  transition:
    background-color 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* ---------- PROFESSIONAL (About, Quote) ---------- */

body[data-vibe="professional"] .about,
body[data-vibe="professional"] .quote,
body[data-vibe="professional"] {
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Crimson Pro", Georgia, serif;
  --font-mono: "Crimson Pro", Georgia, serif;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --text: #000000;
  --text-muted: #3a3a3a;
  --text-faint: #6b6b6b;
  --primary: #000000;
  --on-primary: #ffffff;
  --primary-container: #1a1a1a;
  --on-primary-container: #ffffff;
  --tertiary: #333333;
  --secondary: #555555;
  --outline: #999999;
  --outline-var: #e0e0e0;
  --bg: #ffffff;
  --bg-deep: #f2f2f2;
  --bg-low: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.13);
  --glass-border-soft: rgba(0, 0, 0, 0.09);
  --glass-top: rgba(255, 255, 255, 0.92);
}

body[data-vibe="professional"] .about,
body[data-vibe="professional"] .quote {
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
  color: var(--text);
}

body[data-vibe="professional"] .about {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-vibe="professional"] .about .beam {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
}

body[data-vibe="professional"] .about .beam-2 {
  background: radial-gradient(circle, rgba(85, 85, 85, 0.05) 0%, rgba(85, 85, 85, 0) 70%);
}

body[data-vibe="professional"] .about .about-frame {
  border-radius: var(--r-lg);
}

body[data-vibe="professional"] .quote {
  padding-top: var(--section-gap);
}

body[data-vibe="professional"] .quote .quote-card {
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-vibe="professional"] .quote .quote-half h3 {
  font-family: var(--font-display);
}

body[data-vibe="professional"] .about .btn-primary,
body[data-vibe="professional"] .quote .btn-primary {
  border-color: rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
}

body[data-vibe="professional"] .about .btn-primary:hover,
body[data-vibe="professional"] .about .btn-primary:focus-visible,
body[data-vibe="professional"] .quote .btn-primary:hover,
body[data-vibe="professional"] .quote .btn-primary:focus-visible {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

body[data-vibe="professional"] .quote .btn-accent {
  border-color: rgba(0, 0, 0, 0.5);
  color: #000000;
}

body[data-vibe="professional"] .quote .btn-accent:hover,
body[data-vibe="professional"] .quote .btn-accent:focus-visible {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

body[data-vibe="professional"] .about .btn-ghost,
body[data-vibe="professional"] .quote .btn-ghost {
  border-color: rgba(0, 0, 0, 0.25);
}

body[data-vibe="professional"] .about .btn-ghost:hover,
body[data-vibe="professional"] .about .btn-ghost:focus-visible,
body[data-vibe="professional"] .quote .btn-ghost:hover,
body[data-vibe="professional"] .quote .btn-ghost:focus-visible {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

body[data-vibe="professional"] .faq {
  padding-top: var(--section-gap);
}

/* ---------- BRIGHT & POPPY (Projects, Contact) ---------- */

body[data-vibe="poppy"] .projects,
body[data-vibe="poppy"] .contact,
body[data-vibe="poppy"] {
  --font-display: "Poppins", "Inter", sans-serif;
  --font-body: "Poppins", "Inter", sans-serif;
  --font-mono: "Poppins", "Inter", sans-serif;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --text: #2a1a5e;
  --text-muted: #4b3a86;
  --text-faint: #7a6bb0;
  --primary: #ff2e88;
  --on-primary: #ffffff;
  --primary-container: #ff6bb0;
  --on-primary-container: #ffffff;
  --tertiary: #00c2ff;
  --secondary: #7c3aed;
  --outline: #b39be0;
  --outline-var: #e2d6f7;
  --bg: #fff6fb;
  --bg-deep: #f3ecff;
  --bg-low: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(124, 58, 237, 0.18);
  --glass-border-soft: rgba(124, 58, 237, 0.12);
  --glass-top: rgba(255, 255, 255, 0.92);
  --poppy-yellow: #ffd500;
  --poppy-purple: #7c3aed;
  --poppy-green: #22c55e;
  --poppy-blue: #3b82f6;
  --poppy-pink: #ff2e88;
  --poppy-cyan: #00c2ff;
}

body[data-vibe="poppy"] .projects,
body[data-vibe="poppy"] .contact {
  background: linear-gradient(165deg, #ffe3f1 0%, #f0e4ff 45%, #d9f4ff 100%);
  color: var(--text);
}

/* Solid colour doors — poppy pop as they open */
body[data-vibe="poppy"] .projects .project[data-project="worshipcharts"] .door-l {
  background: var(--poppy-yellow);
}

body[data-vibe="poppy"] .projects .project[data-project="worshipcharts"] .door-r {
  background: var(--poppy-purple);
}

body[data-vibe="poppy"] .projects .project[data-project="elyon"] .project-slide-cover {
  background: var(--poppy-green);
}

body[data-vibe="poppy"] .projects .project[data-project="grip"] .door-l {
  background: var(--poppy-blue);
}

body[data-vibe="poppy"] .projects .project[data-project="grip"] .door-r {
  background: var(--poppy-cyan);
}

body[data-vibe="poppy"] .projects .door-label {
  color: #2a1a5e;
  font-weight: 700;
}

body[data-vibe="poppy"] .projects .project[data-project="elyon"] .door-label {
  color: #ffffff;
}

body[data-vibe="poppy"] .projects .project-card {
  border-radius: var(--r-xl);
  border-top: 6px solid var(--poppy-yellow);
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.18);
}

body[data-vibe="poppy"] .projects .project-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-shadow: none;
}

body[data-vibe="poppy"] .projects .chip {
  background: var(--poppy-purple);
  border-color: transparent;
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--r-full);
}

body[data-vibe="poppy"] .projects .chip:nth-child(2) {
  background: var(--poppy-green);
}

body[data-vibe="poppy"] .projects .chip:nth-child(3) {
  background: var(--poppy-blue);
}

body[data-vibe="poppy"] .projects .chip:nth-child(4) {
  background: var(--poppy-pink);
}

body[data-vibe="poppy"] .projects .btn-ghost {
  border-color: rgba(42, 26, 94, 0.28);
}

body[data-vibe="poppy"] .projects .btn-ghost:hover,
body[data-vibe="poppy"] .projects .btn-ghost:focus-visible {
  background: rgba(42, 26, 94, 0.9);
  border-color: rgba(42, 26, 94, 0.9);
  color: #ffffff;
}

body[data-vibe="poppy"] .projects .btn-accent {
  border-color: var(--poppy-purple);
  color: var(--poppy-purple);
}

body[data-vibe="poppy"] .projects .btn-accent:hover,
body[data-vibe="poppy"] .projects .btn-accent:focus-visible {
  background: var(--poppy-purple);
  border-color: var(--poppy-purple);
  color: #ffffff;
}

body[data-vibe="poppy"] .contact {
  padding-top: var(--section-gap);
}

body[data-vibe="poppy"] .contact .contact-card {
  border-radius: var(--r-xl);
  border-top: 6px solid var(--poppy-green);
  box-shadow: 0 24px 60px rgba(42, 26, 94, 0.16);
}

body[data-vibe="poppy"] .contact .contact-title {
  font-family: var(--font-display);
  font-weight: 800;
}

body[data-vibe="poppy"] .contact .contact-detail .icon {
  color: var(--poppy-purple);
}

body[data-vibe="poppy"] .contact .contact-detail:nth-child(2) .icon {
  color: var(--poppy-green);
}

body[data-vibe="poppy"] .contact .contact-detail:nth-child(3) .icon {
  color: var(--poppy-blue);
}

body[data-vibe="poppy"] .contact .contact-detail:nth-child(4) .icon {
  color: var(--poppy-pink);
}

body[data-vibe="poppy"] .contact .contact-media {
  background: linear-gradient(160deg, var(--poppy-purple) 0%, var(--poppy-pink) 100%);
}

body[data-vibe="poppy"] .contact .contact-media .contact-portrait {
  filter: saturate(0.9);
}

body[data-vibe="poppy"] .contact .btn-primary {
  border-color: var(--poppy-purple);
  background: var(--poppy-purple);
  color: #ffffff;
}

body[data-vibe="poppy"] .contact .btn-primary:hover,
body[data-vibe="poppy"] .contact .btn-primary:focus-visible {
  background: var(--poppy-blue);
  border-color: var(--poppy-blue);
  color: #ffffff;
}

/* ---------- WARM (Capabilities, FAQ) ---------- */

body[data-vibe="warm"] .capabilities-wrap,
body[data-vibe="warm"] .faq,
body[data-vibe="warm"] {
  --font-display: "Lora", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Lora", Georgia, serif;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --text: #3b2a1a;
  --text-muted: #6b513a;
  --text-faint: #9a7f60;
  --primary: #e07b39;
  --on-primary: #ffffff;
  --primary-container: #f0a05c;
  --on-primary-container: #ffffff;
  --tertiary: #c9973b;
  --secondary: #a9845c;
  --outline: #c4a37e;
  --outline-var: #e5d3bb;
  --bg: #f7ebd8;
  --bg-deep: #f3e3cb;
  --bg-low: #fbf3e6;
  --glass-bg: rgba(255, 250, 240, 0.8);
  --glass-bg-strong: rgba(255, 250, 240, 0.9);
  --glass-border: rgba(107, 81, 58, 0.18);
  --glass-border-soft: rgba(107, 81, 58, 0.12);
  --glass-top: rgba(255, 255, 255, 0.6);
  --cosy-cream: #fdf7ec;
  --cosy-amber: #e07b39;
  --cosy-terracotta: #c65f2a;
  --cosy-brown: #7a5a35;
}

body[data-vibe="warm"] .capabilities-wrap,
body[data-vibe="warm"] .faq {
  background: linear-gradient(180deg, #faf3e7 0%, #f3e3cb 100%);
  color: var(--text);
}

body[data-vibe="warm"] .capabilities-wrap .capabilities-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0;
}

body[data-vibe="warm"] .capabilities-wrap .cap-card {
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(107, 81, 58, 0.2);
  border-radius: var(--r-xl);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
}

body[data-vibe="warm"] .faq {
  padding-top: var(--section-gap);
}

body[data-vibe="warm"] .faq .faq-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0;
}

body[data-vibe="warm"] .faq .faq-item summary {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
}

body[data-vibe="warm"] .faq .faq-item {
  border-bottom-color: rgba(107, 81, 58, 0.18);
}

body[data-vibe="warm"] .faq .faq-answer {
  color: var(--text-muted);
}

/* ---------- DARK & MYSTERIOUS (FAQ) ---------- */

body[data-vibe="mysterious"] .faq {
  padding-top: var(--section-gap);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 183, 125, 0.05) 0%, rgba(255, 183, 125, 0) 55%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(180deg, #0e0e0e 0%, #131313 100%);
  color: var(--text);
}

body[data-vibe="mysterious"] .faq .faq-item {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body[data-vibe="mysterious"] .faq .faq-item summary {
  color: var(--text-muted);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

body[data-vibe="mysterious"] .faq .faq-item summary:hover {
  color: var(--text);
}

body[data-vibe="mysterious"] .faq .faq-item[open] summary {
  color: var(--text);
  text-shadow: 0 0 28px rgba(255, 183, 125, 0.35);
}

body[data-vibe="mysterious"] .faq .faq-item[open] {
  border-bottom-color: rgba(255, 183, 125, 0.35);
}

body[data-vibe="mysterious"] .faq .faq-answer {
  color: var(--text-muted);
  animation: faq-reveal 0.45s ease both;
}

@keyframes faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   CHROME: HEADER, ENQUIRE BAR & FOOTER PER VIBE
   ============================================================ */

/* --- Professional chrome --- */
body[data-vibe="professional"] .site-nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

body[data-vibe="professional"] .site-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

body[data-vibe="professional"] .site-logo {
  color: #000000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}

body[data-vibe="professional"] .nav-links a {
  color: #3a3a3a;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
}

body[data-vibe="professional"] .nav-links a:hover,
body[data-vibe="professional"] .nav-links a.active {
  color: #000000;
  font-style: italic;
}

body[data-vibe="professional"] .nav-actions .btn-primary {
  border-color: rgba(0, 0, 0, 0.6);
  background: #ffffff;
  color: #000000;
}

body[data-vibe="professional"] .nav-actions .btn-primary:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

body[data-vibe="professional"] .nav-toggle {
  border-color: rgba(0, 0, 0, 0.2);
}

body[data-vibe="professional"] .nav-toggle span {
  background: #000000;
}

@media (max-width: 899px) {
  body[data-vibe="professional"] .nav-links {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(0, 0, 0, 0.1);
  }
}

body[data-vibe="professional"] .enquire-bar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

body[data-vibe="professional"] .enquire-bar .field-input {
  color: #000000;
}

body[data-vibe="professional"] .enquire-bar .btn {
  border-color: rgba(0, 0, 0, 0.6);
  background: #ffffff;
  color: #000000;
}

body[data-vibe="professional"] .enquire-bar .btn:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

body[data-vibe="professional"] .site-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
  background: var(--bg);
}

body[data-vibe="professional"] .footer-logo {
  color: #000000;
}

/* --- Poppy chrome --- */
body[data-vibe="poppy"] .site-nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(124, 58, 237, 0.15);
}

body[data-vibe="poppy"] .site-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

body[data-vibe="poppy"] .site-logo {
  color: #7c3aed;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

body[data-vibe="poppy"] .nav-links a {
  color: #4b3a86;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body[data-vibe="poppy"] .nav-links a:hover,
body[data-vibe="poppy"] .nav-links a.active {
  color: #ff2e88;
}

body[data-vibe="poppy"] .nav-actions .btn-primary {
  border-color: transparent;
  background: #ffd500;
  color: #2a1a5e;
  font-weight: 700;
}

body[data-vibe="poppy"] .nav-actions .btn-primary:hover {
  background: #7c3aed;
  color: #ffffff;
}

body[data-vibe="poppy"] .nav-toggle {
  border-color: rgba(124, 58, 237, 0.3);
}

body[data-vibe="poppy"] .nav-toggle span {
  background: #7c3aed;
}

@media (max-width: 899px) {
  body[data-vibe="poppy"] .nav-links {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(124, 58, 237, 0.15);
  }
}

body[data-vibe="poppy"] .enquire-bar {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #ffd500;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.18);
}

body[data-vibe="poppy"] .enquire-bar .field-input {
  color: #2a1a5e;
  font-family: var(--font-display);
}

body[data-vibe="poppy"] .enquire-bar .btn {
  border-color: transparent;
  background: linear-gradient(90deg, #7c3aed 0%, #ff2e88 100%);
  color: #ffffff;
  font-weight: 700;
}

body[data-vibe="poppy"] .enquire-bar .btn:hover {
  background: linear-gradient(90deg, #22c55e 0%, #3b82f6 100%);
}

body[data-vibe="poppy"] .site-footer {
  border-top-color: rgba(124, 58, 237, 0.15);
  background: var(--bg);
}

body[data-vibe="poppy"] .footer-logo {
  color: #7c3aed;
  font-family: var(--font-display);
  font-weight: 700;
}

body[data-vibe="poppy"] .footer-logo svg {
  color: #ff2e88;
}

/* --- Warm chrome --- */
body[data-vibe="warm"] .site-nav {
  background: rgba(253, 247, 236, 0.85);
  border-bottom-color: rgba(107, 81, 58, 0.12);
}

body[data-vibe="warm"] .site-nav.scrolled {
  background: rgba(253, 247, 236, 0.95);
}

body[data-vibe="warm"] .site-logo {
  color: #3b2a1a;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

body[data-vibe="warm"] .nav-links a {
  color: #9a7f60;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
}

body[data-vibe="warm"] .nav-links a:hover,
body[data-vibe="warm"] .nav-links a.active {
  color: #c65f2a;
}

body[data-vibe="warm"] .nav-actions .btn-primary {
  border-color: transparent;
  background: #e07b39;
  color: #ffffff;
}

body[data-vibe="warm"] .nav-actions .btn-primary:hover {
  background: #c65f2a;
  color: #ffffff;
}

body[data-vibe="warm"] .nav-toggle {
  border-color: rgba(107, 81, 58, 0.25);
}

body[data-vibe="warm"] .nav-toggle span {
  background: #3b2a1a;
}

@media (max-width: 899px) {
  body[data-vibe="warm"] .nav-links {
    background: rgba(253, 247, 236, 0.98);
    border-bottom-color: rgba(107, 81, 58, 0.12);
  }
}

body[data-vibe="warm"] .enquire-bar {
  background: rgba(253, 247, 236, 0.95);
  border: 1px solid rgba(107, 81, 58, 0.18);
  box-shadow: 0 12px 40px rgba(120, 80, 40, 0.14);
}

body[data-vibe="warm"] .enquire-bar .field-input {
  color: #3b2a1a;
}

body[data-vibe="warm"] .enquire-bar .btn {
  border-color: transparent;
  background: #e07b39;
  color: #ffffff;
}

body[data-vibe="warm"] .enquire-bar .btn:hover {
  background: #c65f2a;
  color: #ffffff;
}

body[data-vibe="warm"] .site-footer {
  border-top-color: rgba(107, 81, 58, 0.12);
  background: var(--bg);
}

body[data-vibe="warm"] .footer-logo {
  color: #3b2a1a;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0;
}

body[data-vibe="warm"] .footer-logo svg {
  color: #e07b39;
}

/* Footer link legibility on light backgrounds */
body[data-vibe="professional"] .footer-link,
body[data-vibe="poppy"] .footer-link,
body[data-vibe="warm"] .footer-link {
  color: var(--text-faint);
}

body[data-vibe="professional"] .footer-link:hover,
body[data-vibe="poppy"] .footer-link:hover,
body[data-vibe="warm"] .footer-link:hover {
  color: var(--text);
}
