/*
  SM Web & Admin — dark, broody one-pager
  Dark: #0f1419 (bg), #1a2328 (surface), #232f36 (elevated)
  Twilight: #0a1020 (bg), #121c2e (surface) — cool navy / indigo variant
  Reef: #0d1615 (bg), #142824 (surface) — teal + orange accent-forward
  Ember: warm dark hero/footer; light services + why (#f7f4f1) and white cards like blend
  Accent: #e07d2e (orange), #4ba28a (teal)
  Text: #e6e8eb (primary), rgba(230,232,235,0.8) (muted)
  Themes cycle: dark → light → blend → twilight → reef → ember → dark (see js/main.js).
  Order: tags, classes, IDs (alphabetical within groups).
*/

/****************************************************/
/*********************** TAGS ***********************/
/****************************************************/

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #e6e8eb;
  background: #0f1419;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 9.25rem; /* content starts below overlapping logo */
  overflow-x: hidden;
}

/* Fixed header anchor offset */
section[id] {
  scroll-margin-top: 8rem;
}

.page-content .content-block h3[id] {
  scroll-margin-top: 8rem;
}

a {
  color: #e6e8eb;
  text-decoration: none;
}

a:hover {
  color: #e07d2e;
}

a:focus-visible {
  outline: 2px solid #e07d2e;
  outline-offset: 4px;
}

h1, h2, h3 {
  font-family: "Trebuchet MS", Trebuchet, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #e6e8eb;
}

blockquote {
  font-style: italic;
  border-left: 4px solid #4ba28a;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: rgba(230, 232, 235, 0.9);
}

/****************************************************/
/********************* SKIP LINK ********************/
/****************************************************/

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #e07d2e;
  color: #0f1419;
  border-radius: 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/****************************************************/
/********************* HEADER ***********************/
/****************************************************/

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 5.5rem; /* fixed bar height; logo hangs down below */
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: visible; /* no scroll; logo may extend below */
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 0;
  height: 5.5rem;
  display: flex;
  align-items: flex-start; /* logo at top of bar so it hangs down into page */
  justify-content: space-between;
  overflow: visible;
  position: relative;
}

/* Colour swap + hamburger grouped on the right (nav is position:absolute) */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
  align-self: center;
  flex-shrink: 0;
}

.logo {
  display: inline-block;
  position: relative;
  line-height: 0;
  margin-top: -0.25rem; /* nudge up so bar sits at top of logo */
  width: 176px;
  height: 88px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.logo::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.26), transparent 55%),
    radial-gradient(circle at 90% 95%, rgba(75, 162, 138, 0.14), transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.logo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .logo {
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }
}

.logo img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transform-origin: center;
  /* no negative margin; logo simply extends below header */
  position: relative;
  z-index: 1;
}

/* Always-hamburger nav (avoid clutter on desktop) */
.nav {
  position: absolute;
  top: calc(100% - 0.25rem);
  right: 1.25rem;
  left: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  padding-top: 0;
  margin-top: 0;
  border-top: 1px solid transparent;
  background: rgba(15, 20, 25, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  z-index: 60;
}

body.nav-open .nav {
  max-height: min(90vh, 40rem);
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 1;
  pointer-events: auto;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  margin-top: 0.75rem;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.nav a {
  font-weight: 500;
  color: rgba(230, 232, 235, 0.9);
}

.nav a:hover {
  color: #e07d2e;
}

/* Hamburger: hidden on desktop */
.nav-toggle {
  display: flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
}

.nav a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e07d2e;
}
.nav-toggle:focus-visible {
  outline: 2px solid #e07d2e;
  outline-offset: 4px;
}
.nav-toggle-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 18px;
}
.nav-toggle-inner span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle-inner span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle-inner span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-inner span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/****************************************************/
/********************* HERO *************************/
/****************************************************/

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(75, 162, 138, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 85%, rgba(224, 125, 46, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 70%, rgba(224, 125, 46, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0f1419 0%, #141c21 50%, #0f1419 100%);
  pointer-events: none;
}

/* Floating shapes (Junabase-style background motion) */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

/* Parallax: shapes follow mouse with different depths */
.shape-wrap {
  position: absolute;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.shape-wrap--1 { --depth: 1.2; top: 10%; left: 5%; width: 280px; height: 280px; }
.shape-wrap--2 { --depth: 1.6; top: 60%; right: 10%; left: auto; width: 200px; height: 200px; }
.shape-wrap--3 { --depth: 1; bottom: 20%; left: 20%; top: auto; width: 160px; height: 160px; }
.shape-wrap--4 { --depth: 0.8; top: 30%; right: 25%; left: auto; width: 120px; height: 120px; }
.shape-wrap--5 { --depth: 1.4; bottom: 30%; right: 15%; left: auto; top: auto; width: 180px; height: 180px; }
.shape-wrap--6 { --depth: 0.6; top: 70%; left: 40%; width: 100px; height: 100px; }

.hero .hero-shapes .shape-wrap {
  transform: translate(
    calc(var(--mx, 0) * 24px * var(--depth, 1)),
    calc(var(--my, 0) * 24px * var(--depth, 1))
  );
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-shapes .shape-wrap {
    transform: none;
  }
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.25;
  will-change: transform;
}

.shape-wrap--1 .shape { width: 280px; height: 280px; background: rgba(75, 162, 138, 0.4); top: 0; left: 0; animation: float1 18s ease-in-out infinite; }
.shape-wrap--2 .shape { width: 200px; height: 200px; background: rgba(224, 125, 46, 0.35); top: 0; right: 0; left: auto; animation: float2 22s ease-in-out infinite; }
.shape-wrap--3 .shape { width: 160px; height: 160px; background: rgba(29, 83, 102, 0.25); bottom: 0; left: 0; top: auto; animation: float3 20s ease-in-out infinite; }
.shape-wrap--4 .shape { width: 120px; height: 120px; background: rgba(75, 162, 138, 0.3); top: 0; right: 0; left: auto; animation: float4 16s ease-in-out infinite; }
.shape-wrap--5 .shape { width: 180px; height: 180px; background: rgba(224, 125, 46, 0.25); bottom: 0; right: 0; left: auto; top: auto; animation: float5 24s ease-in-out infinite; }
.shape-wrap--6 .shape { width: 100px; height: 100px; background: rgba(29, 83, 102, 0.2); top: 0; left: 0; animation: float6 14s ease-in-out infinite; }

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 25px) scale(0.95); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -30px) scale(1.1); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, 15px); }
  75% { transform: translate(-25px, -10px); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 25px); }
}

@keyframes float5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, 20px) scale(1.08); }
  66% { transform: translate(-30px, -15px) scale(0.92); }
}

@keyframes float6 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -20px); }
}

/* Scroll-linked: shapes fade as you scroll past hero (Atuin-style) */
body.scroll-past-hero .hero-shapes .shape {
  opacity: 0.04;
  transition: opacity 0.6s ease;
}

/* Mouse-follow spotlight — stronger teal + orange glow */
.hero-spotlight {
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      circle 45vmax at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
      rgba(224, 125, 46, 0.12) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle 38vmax at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
      rgba(75, 162, 138, 0.18) 0%,
      transparent 50%
    );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero:hover .hero-spotlight,
.hero:focus-within .hero-spotlight {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .shape {
    animation: none;
    opacity: 0.12;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

body.hero-loaded .hero-content {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-content {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero-kicker {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4ba28a;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #e6e8eb;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.hero-line {
  display: block;
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(230, 232, 235, 0.85);
  margin-bottom: 2rem;
}

.hero-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 2.5rem;
  color: rgba(230, 232, 235, 0.6);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: opacity 0.2s, color 0.2s;
}

.hero-scroll-cue:hover {
  opacity: 1;
  color: #e07d2e;
}

.hero-scroll-icon {
  font-size: 1.25rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-icon { animation: none; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/****************************************************/
/********************* BUTTONS **********************/
/****************************************************/

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: inherit;
  line-height: 1.2;
}

.btn:focus-visible {
  outline: 2px solid #e07d2e;
  outline-offset: 4px;
}

button.btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-primary {
  background: #e07d2e;
  background-color: #e07d2e;
  color: #0f1419;
  border: 0;
}

.btn-primary:hover {
  color: #0f1419;
  background: #c96f22;
  background-color: #c96f22;
}

button.btn.btn-primary {
  border: 0;
}

.btn-secondary {
  background: transparent;
  background-color: transparent;
  color: #e6e8eb;
  border: 2px solid rgba(230, 232, 235, 0.5);
}

.btn-secondary:hover {
  color: #e6e8eb;
  border-color: #4ba28a;
  background: rgba(75, 162, 138, 0.15);
  background-color: rgba(75, 162, 138, 0.15);
}

/****************************************************/
/********************* SECTIONS *********************/
/****************************************************/

.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  color: #e6e8eb;
  margin-bottom: 0.75rem;
}

.section-intro {
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  color: rgba(230, 232, 235, 0.8);
}

/* Section lists (reset-friendly bullets) */
.section-inner ul {
  margin: 0 0 1.75rem;
  padding-left: 1.5rem;
}

.section-inner ul li {
  margin: 0.5rem 0;
  color: rgba(230, 232, 235, 0.85);
}

.section-inner ul li::marker {
  color: #4ba28a;
}

/* Services grid */
.section--services {
  background: #141c21;
}

.services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: #1a2328;
  padding: 1.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(75, 162, 138, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.service-num {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: #4ba28a;
  opacity: 0.6;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.service-card h3 {
  font-size: 1.125rem;
  color: #e6e8eb;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9375rem;
  margin: 0;
  color: rgba(230, 232, 235, 0.8);
}

/* Showcase / What you get */
.section--showcase {
  background: #0f1419;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
  background: #1a2328;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  overflow: hidden;
}

.case-study .mockup-card {
  align-self: center;
}

.case-study__content {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study__media {
  background: transparent;
  border: none;
  border-radius: 10px;
  box-shadow: none;
}

.case-study__media:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.case-study:hover {
  border-color: rgba(75, 162, 138, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.case-study:hover .mockup-overlay {
  opacity: 1;
}

.case-study__kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4ba28a;
  margin-bottom: 0.5rem;
}

.case-study__title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.case-study__text {
  color: rgba(230, 232, 235, 0.85);
  margin-bottom: 1rem;
}

.case-study__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: rgba(230, 232, 235, 0.85);
  font-size: 0.9375rem;
}

.case-study__list li {
  position: relative;
  padding-left: 1.25rem;
}

.case-study__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(75, 162, 138, 0.75);
}

.case-study__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.mockup-card {
  position: relative;
  display: block;
  background: #1a2328;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.mockup-card:hover {
  transform: translateY(-4px);
  border-color: rgba(75, 162, 138, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.mockup-card:hover .mockup-overlay {
  opacity: 1;
}

.mockup-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.78);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mockup-overlay-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e6e8eb;
  letter-spacing: 0.02em;
}

.mockup-overlay-url {
  font-size: 0.75rem;
  color: rgba(230, 232, 235, 0.75);
}

.mockup-screenshot {
  display: block;
  width: 100%;
  height: auto;
  min-height: 140px;
  object-fit: cover;
  vertical-align: middle;
}

.mockup-screen--screenshot {
  padding: 0;
  min-height: 180px;
  position: relative;
  background: #141c21;
}

.mockup-screenshot-fallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem;
  background: #141c21;
}

.mockup-screen--screenshot.mockup-screen--fallback .mockup-screenshot {
  display: none;
}

.mockup-screen--screenshot.mockup-screen--fallback .mockup-screenshot-fallback {
  display: flex;
}

.mockup-fallback-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(230, 232, 235, 0.9);
}

.mockup-fallback-url {
  font-size: 0.75rem;
  color: rgba(230, 232, 235, 0.5);
}

.mockup-chrome {
  background: #232f36;
  padding: 0.6rem 0.75rem;
  display: flex;
  gap: 0.4rem;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-dot:nth-child(1) { background: #e07d2e; }
.mockup-dot:nth-child(2) { background: #4ba28a; }
.mockup-dot:nth-child(3) { background: #5a6b78; }

.mockup-screen {
  padding: 1.25rem;
  min-height: 100px;
  background: linear-gradient(180deg, #1a2328 0%, #141c21 100%);
}

@media (max-width: 900px) {
  .case-study {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
}

.mockup-placeholder {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.6rem;
}

.mockup-placeholder--title {
  height: 12px;
  width: 70%;
  margin-bottom: 1rem;
}

.mockup-placeholder--short {
  width: 55%;
}

/* Why section */
.section--why {
  background: #141c21;
}

.pullquote {
  font-size: 1.125rem;
  color: rgba(230, 232, 235, 0.9);
}

/* CTA section — same section-inner as other sections so alignment matches */
.section--cta {
  background: linear-gradient(180deg, #0f1419 0%, #141c21 50%, #0f1419 100%);
  text-align: center;
}

/* Prevent scroll-reveal leaving contact section offset; match why section exactly */
.section--cta .section-inner {
  width: 100%;
  max-width: 900px;
}

.contact-actions {
  margin-top: 1.5rem;
}

.contact-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-links__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 2px solid rgba(230, 232, 235, 0.45);
  color: rgba(230, 232, 235, 0.95);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}

.contact-links__btn .fa-solid,
.contact-links__btn .fa-brands {
  font-size: 1.125rem;
  line-height: 1;
}

.contact-links__btn:hover {
  color: #e07d2e;
  border-color: #e07d2e;
  transform: translateY(-1px);
}

.contact-note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: rgba(230, 232, 235, 0.7);
}

/****************************************************/
/********************* FOOTER ***********************/
/****************************************************/

.site-footer {
  margin-top: auto;
  padding: 2rem 1.5rem;
  background: #0a0e11;
  color: rgba(230, 232, 235, 0.9);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-tagline {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(230, 232, 235, 0.92);
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #4ba28a;
}

.site-footer a:hover {
  color: #e07d2e;
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(230, 232, 235, 0.8);
}

/****************************************************/
/********************* SCROLL REVEAL ****************/
/****************************************************/

@media (prefers-reduced-motion: reduce) {
  .section { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
  :root {
    --reveal-x: 40px;
    --reveal-y: 30px;
  }

  @media (max-width: 600px) {
    :root {
      --reveal-x: 20px;
      --reveal-y: 15px;
    }
  }

  @keyframes revealIn {
    from {
      opacity: 0;
      transform: translate(var(--dir-x, var(--reveal-x)), var(--reveal-y));
    }
    to {
      opacity: 1;
      transform: translate(0, 0);
    }
  }

  .section {
    opacity: 0;
    view-timeline-name: --reveal;
    view-timeline-axis: block;
    animation: revealIn 0.7s ease-out both;
    animation-timeline: --reveal;
    animation-range: entry 0% cover 35%;
  }

  .section:nth-of-type(odd)  { --dir-x: var(--reveal-x); }
  .section:nth-of-type(even) { --dir-x: calc(var(--reveal-x) * -1); }

  /* No reveal on contact so it doesn’t get left offset vs why section */
  .section--cta {
    animation: none;
    opacity: 1;
    view-timeline-name: unset;
    animation-timeline: unset;
  }
}

/* Fallback when view() not supported */
@supports not (animation-timeline: view()) {
  .section {
    opacity: 1;
  }
}

/****************************************************/
/********************* RESPONSIVE *******************/
/****************************************************/

/* Subpages (404, cookie-policy) */
.page-content {
  flex: 1;
  padding: 3rem 1.5rem;
  background: #0f1419;
}

.content-block {
  max-width: 700px;
  margin: 0 auto;
  background: #1a2328;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.content-block h2 {
  margin-bottom: 1rem;
  color: #e6e8eb;
}

.content-block h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  color: #e6e8eb;
}

.content-block p {
  margin-bottom: 1rem;
  color: rgba(230, 232, 235, 0.85);
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block a {
  color: #4ba28a;
}

.content-block a:hover {
  color: #e07d2e;
}

html[data-theme="light"] .page-content {
  background: #f6f7f9;
}

html[data-theme="light"] .content-block {
  background: #ffffff;
  border-color: rgba(15, 20, 25, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .content-block h2 {
  color: #1d5366;
}

html[data-theme="light"] .content-block h3 {
  color: #0f1419;
}

html[data-theme="light"] .content-block p {
  color: rgba(15, 20, 25, 0.78);
}

html[data-theme="light"] .content-block a {
  color: #1d5366;
}

html[data-theme="light"] .content-block a:hover {
  color: #c96f22;
}

/* Blend: subpages mirror lifted light surfaces on a darker ribbon (same idea as blended services cards) */
html[data-theme="blend"] .page-content {
  background: #141c21;
}

html[data-theme="blend"] .content-block {
  background: #ffffff;
  border-color: rgba(15, 20, 25, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

html[data-theme="blend"] .content-block h2 {
  color: #1d5366;
}

html[data-theme="blend"] .content-block h3 {
  color: #0f1419;
}

html[data-theme="blend"] .content-block p {
  color: rgba(15, 20, 25, 0.82);
}

html[data-theme="blend"] .content-block a {
  color: #1d5366;
}

html[data-theme="blend"] .content-block a:hover {
  color: #c96f22;
}

/* Twilight: subpages — cool navy shell, slightly lifted cards */
html[data-theme="twilight"] .page-content {
  background: #0a1020;
}

html[data-theme="twilight"] .content-block {
  background: #121c2e;
  border-color: rgba(120, 160, 220, 0.12);
  box-shadow: 0 12px 32px rgba(0, 8, 24, 0.45);
}

html[data-theme="twilight"] .content-block h2 {
  color: #b8d4f0;
}

html[data-theme="twilight"] .content-block a {
  color: #6fc9b4;
}

html[data-theme="twilight"] .content-block a:hover {
  color: #e07d2e;
}

/* Reef: subpages — deep teal shell, cards with teal edge + orange hover */
html[data-theme="reef"] .page-content {
  background: #0d1615;
}

html[data-theme="reef"] .content-block {
  background: #142824;
  border-color: rgba(75, 162, 138, 0.22);
  box-shadow: 0 12px 32px rgba(0, 20, 16, 0.5);
}

html[data-theme="reef"] .content-block h2 {
  color: #5ed4b8;
}

html[data-theme="reef"] .content-block a {
  color: #4ba28a;
}

html[data-theme="reef"] .content-block a:hover {
  color: #f0a060;
}

/* Ember: subpages — same lift as blend (dark band, white card) */
html[data-theme="ember"] .page-content {
  background: #1a140f;
}

html[data-theme="ember"] .content-block {
  background: #ffffff;
  border-color: rgba(15, 20, 25, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

html[data-theme="ember"] .content-block h2 {
  color: #1d5366;
}

html[data-theme="ember"] .content-block h3 {
  color: #0f1419;
}

html[data-theme="ember"] .content-block p {
  color: rgba(15, 20, 25, 0.78);
}

html[data-theme="ember"] .content-block a {
  color: #1d5366;
}

html[data-theme="ember"] .content-block a:hover {
  color: #c96f22;
}

/****************************************************/
/******************* COOKIE BANNER *******************/
/****************************************************/

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(10, 14, 17, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.cookie-banner__title {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #e6e8eb;
}

.cookie-banner__text {
  margin-bottom: 0.75rem;
  color: rgba(230, 232, 235, 0.85);
  font-size: 0.9375rem;
}

.cookie-banner__text a {
  color: #4ba28a;
}

.cookie-banner__text a:hover {
  color: #e07d2e;
}

html[data-theme="light"] .cookie-banner__text a {
  color: #4ba28a;
}

html[data-theme="light"] .cookie-banner__text a:hover {
  color: #e07d2e;
}

html[data-theme="light"] .cookie-banner__btn.btn-secondary {
  color: rgba(230, 232, 235, 0.95);
  border-color: rgba(230, 232, 235, 0.75);
}

html[data-theme="light"] .cookie-banner__btn.btn-secondary:hover {
  color: rgba(230, 232, 235, 0.95);
  border-color: #4ba28a;
  background: rgba(75, 162, 138, 0.18);
  background-color: rgba(75, 162, 138, 0.18);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .cookie-banner__actions .btn {
    width: 100%;
  }
}

/****************************************************/
/********************* RESPONSIVE *******************/
/****************************************************/

@media (min-width: 900px) {
  body {
    padding-top: 10.75rem; /* content starts below larger overlapping logo */
  }

  .site-header,
  .header-inner {
    height: 5.5rem;
  }

  .header-inner {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .logo img {
    transform: scale(1.02);
  }

  .logo {
    width: 220px;
    height: 110px;
    border-radius: 14px;
  }
}

@media (max-width: 600px) {
  :root {
    --mobile-gutter: 1rem;
  }

  body {
    padding-top: 7.25rem; /* content starts below logo */
  }

  .site-header {
    height: auto; /* allow expansion when nav opens */
    min-height: 4rem;
    overflow: visible;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    min-height: 4rem;
    height: auto;
    padding-bottom: 0;
  }

  .logo img {
    transform: scale(1.02);
  }

  .logo {
    width: 160px;
    height: 80px;
    border-radius: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    flex: 1 1 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    padding-top: 0;
    border-top: 1px solid transparent;
  }

  body.nav-open .nav {
    max-height: min(90vh, 40rem);
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 1;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .nav a {
    display: block;
    padding: 0.6rem 0;
    font-size: 1rem;
    border-radius: 6px;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .hero {
    min-height: 60vh;
    padding: 3rem var(--mobile-gutter);
  }

  .hero-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .section {
    padding: 3rem var(--mobile-gutter);
  }

  .contact-actions {
    width: 100%;
    box-sizing: border-box;
  }

  .site-footer {
    padding: 3rem 1.25rem 2.5rem;
  }

  .footer-tagline {
    margin-bottom: 0.75rem;
  }

  .footer-inner p + p {
    margin-top: 0.5rem;
  }

  .footer-copy {
    margin-top: 0.75rem;
  }
}

/****************************************************/
/**************** THEME TOGGLE + LIGHT MODE **********/
/****************************************************/

:root {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

.theme-toggle {
  margin: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1rem;
  border-radius: 6px;
  border: 2px solid rgba(230, 232, 235, 0.5);
  background: transparent;
  color: #e6e8eb;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.theme-toggle:hover {
  color: #e6e8eb;
  border-color: #4ba28a;
  background: rgba(75, 162, 138, 0.15);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 2px solid #e07d2e;
  outline-offset: 4px;
}

html[data-theme="light"] body {
  color: #0f1419;
  background: #f6f7f9;
}

html[data-theme="light"] a {
  color: #0f1419;
}

html[data-theme="light"] a:hover {
  color: #c96f22;
}

/* Primary CTA links: keep dark text on orange hover (beats global link hover specificity) */
html[data-theme="light"] a.btn-primary:hover {
  color: #0f1419;
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3 {
  color: #0f1419;
}

html[data-theme="light"] .section h2 {
  color: #1d5366;
}

html[data-theme="light"] blockquote {
  color: rgba(15, 20, 25, 0.85);
}

html[data-theme="light"] .site-header {
  background: rgba(246, 247, 249, 0.92);
  border-bottom-color: rgba(15, 20, 25, 0.08);
}

html[data-theme="light"] .nav {
  background: rgba(246, 247, 249, 0.98);
  border-color: rgba(15, 20, 25, 0.1);
}

html[data-theme="light"] .logo {
  background: rgba(15, 20, 25, 0.04);
  border-color: rgba(15, 20, 25, 0.12);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .nav a {
  color: rgba(15, 20, 25, 0.82);
}

html[data-theme="light"] .nav a:hover {
  color: #1d5366;
}

html[data-theme="light"] .nav a:hover {
  background: rgba(15, 20, 25, 0.06);
}

html[data-theme="light"] .nav-toggle:hover {
  background: rgba(15, 20, 25, 0.06);
}

html[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(75, 162, 138, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 85%, rgba(224, 125, 46, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #f6f7f9 0%, #ffffff 45%, #f6f7f9 100%);
}

html[data-theme="light"] .shape {
  opacity: 0.18;
}

html[data-theme="light"] .hero h1 {
  color: #0f1419;
}

html[data-theme="light"] .hero-lead {
  color: rgba(15, 20, 25, 0.78);
}

html[data-theme="light"] .btn-secondary {
  color: #0f1419;
  border-color: rgba(15, 20, 25, 0.35);
}

html[data-theme="light"] .btn-secondary:hover {
  color: #0f1419;
  background: rgba(75, 162, 138, 0.12);
  background-color: rgba(75, 162, 138, 0.12);
}

html[data-theme="light"] .section-intro {
  color: rgba(15, 20, 25, 0.75);
}

html[data-theme="light"] .section-inner ul li {
  color: rgba(15, 20, 25, 0.78);
}

html[data-theme="light"] .section--services {
  background: #ffffff;
}

html[data-theme="light"] .service-card {
  background: #ffffff;
  border-color: rgba(15, 20, 25, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .service-card p {
  color: rgba(15, 20, 25, 0.75);
}

html[data-theme="light"] .service-num {
  opacity: 1;
}

html[data-theme="light"] .section--showcase {
  background: #f6f7f9;
}

html[data-theme="light"] .case-study {
  background: #ffffff;
  border-color: rgba(15, 20, 25, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .case-study__text {
  color: rgba(15, 20, 25, 0.78);
}

html[data-theme="light"] .mockup-card {
  background: #ffffff;
  border-color: rgba(15, 20, 25, 0.08);
}

html[data-theme="light"] .mockup-screen {
  background: linear-gradient(180deg, #ffffff 0%, #f0f2f4 100%);
}

html[data-theme="light"] .section--why {
  background: #ffffff;
}

html[data-theme="light"] .pullquote {
  color: rgba(15, 20, 25, 0.85);
}

html[data-theme="light"] .section--cta {
  background: linear-gradient(180deg, #f6f7f9 0%, #ffffff 50%, #f6f7f9 100%);
}

html[data-theme="light"] .contact-note {
  color: rgba(15, 20, 25, 0.7);
}

html[data-theme="light"] .contact-links__btn {
  border-color: rgba(15, 20, 25, 0.28);
  color: rgba(15, 20, 25, 0.88);
}

html[data-theme="light"] .contact-links__btn:hover {
  color: #e07d2e;
  border-color: #e07d2e;
}

html[data-theme="light"] .site-footer {
  background: #ffffff;
  color: rgba(15, 20, 25, 0.82);
  border-top-color: rgba(15, 20, 25, 0.08);
}

html[data-theme="light"] .site-footer a {
  color: #1d5366;
}

html[data-theme="light"] .site-footer a:hover {
  color: #c96f22;
}

html[data-theme="light"] .footer-tagline {
  color: rgba(15, 20, 25, 0.9);
}

html[data-theme="light"] .footer-copy {
  color: rgba(15, 20, 25, 0.7);
}

html[data-theme="light"] .theme-toggle {
  color: #0f1419;
  border-color: rgba(15, 20, 25, 0.35);
  background: transparent;
}

html[data-theme="light"] .theme-toggle:hover {
  color: #0f1419;
  border-color: #4ba28a;
  background: rgba(75, 162, 138, 0.12);
}

/* Blend theme: dark header/hero with lighter surfaces */
html[data-theme="blend"] body {
  color: #e6e8eb;
  background: #0f1419;
}

html[data-theme="blend"] .section--services,
html[data-theme="blend"] .section--why {
  background: #f6f7f9;
}

html[data-theme="blend"] .section--showcase {
  background: #141c21;
}

/* Dark-mode fit sits on body #0f1419; blend gives a clearer mid band (showcase-adjacent tone) */
html[data-theme="blend"] .section--fit {
  background: #141c21;
}

html[data-theme="blend"] .section--cta {
  background: linear-gradient(180deg, #141c21 0%, #0f1419 70%, #0f1419 100%);
}

html[data-theme="blend"] .section--services h2,
html[data-theme="blend"] .section--why h2 {
  color: #1d5366;
}

html[data-theme="blend"] .section--services p,
html[data-theme="blend"] .section--why p,
html[data-theme="blend"] .section--services h3,
html[data-theme="blend"] .section--why blockquote,
html[data-theme="blend"] .section--services .section-intro,
html[data-theme="blend"] .section--why .section-intro,
html[data-theme="blend"] .section--services .pullquote,
html[data-theme="blend"] .section--why .pullquote {
  color: rgba(15, 20, 25, 0.82);
}

html[data-theme="blend"] .service-card,
html[data-theme="blend"] .case-study {
  background: #ffffff;
  border-color: rgba(15, 20, 25, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

html[data-theme="blend"] .service-card p,
html[data-theme="blend"] .case-study__text {
  color: rgba(15, 20, 25, 0.75);
}

html[data-theme="blend"] .section--services .section-inner ul li,
html[data-theme="blend"] .section--why .section-inner ul li {
  color: rgba(15, 20, 25, 0.78);
}

html[data-theme="blend"] .section--fit .section-inner ul li {
  color: rgba(230, 232, 235, 0.85);
}

html[data-theme="blend"] .case-study__title {
  color: #0f1419;
}

html[data-theme="blend"] .case-study__content {
  color: rgba(15, 20, 25, 0.82);
}

html[data-theme="blend"] .case-study .btn-secondary {
  color: #0f1419;
  border-color: rgba(15, 20, 25, 0.35);
}

html[data-theme="blend"] .case-study .btn-secondary:hover {
  color: #0f1419;
  border-color: #4ba28a;
  background: rgba(75, 162, 138, 0.12);
  background-color: rgba(75, 162, 138, 0.12);
}

html[data-theme="blend"] .site-footer {
  background: #0a0e11;
}

html[data-theme="blend"] .site-footer a {
  color: #4ba28a;
}

html[data-theme="blend"] .site-footer a:hover {
  color: #e07d2e;
}

/* Blend-mode contrast fixes (WAVE) */
html[data-theme="blend"] .hero-kicker {
  color: rgba(230, 232, 235, 0.92);
}

html[data-theme="blend"] .service-num {
  color: #1d5366;
  opacity: 0.9;
}

html[data-theme="blend"] .case-study__kicker {
  color: #1d5366;
}

html[data-theme="blend"] .cookie-banner__btn.btn-secondary {
  color: rgba(230, 232, 235, 0.95);
  border-color: rgba(230, 232, 235, 0.75);
}

html[data-theme="blend"] .cookie-banner__btn.btn-secondary:hover {
  border-color: #4ba28a;
  background: rgba(75, 162, 138, 0.18);
  background-color: rgba(75, 162, 138, 0.18);
}

/* Twilight theme: cool navy / indigo (dark; distinct from warm charcoal default) */
html[data-theme="twilight"] body {
  color: #e6e8eb;
  background: #0a1020;
}

html[data-theme="twilight"] .site-header {
  background: rgba(8, 14, 28, 0.92);
  border-bottom-color: rgba(120, 160, 220, 0.08);
}

html[data-theme="twilight"] .nav {
  background: rgba(8, 14, 28, 0.98);
  border-color: rgba(120, 160, 220, 0.12);
  box-shadow: 0 18px 50px rgba(0, 8, 32, 0.55);
}

html[data-theme="twilight"] .logo {
  background: rgba(100, 140, 200, 0.1);
  border-color: rgba(120, 160, 220, 0.18);
  box-shadow:
    0 18px 50px rgba(0, 8, 32, 0.55),
    inset 0 1px 0 rgba(180, 210, 255, 0.1);
}

html[data-theme="twilight"] .logo::before {
  background:
    radial-gradient(circle at 20% 12%, rgba(140, 180, 255, 0.22), transparent 55%),
    radial-gradient(circle at 90% 95%, rgba(75, 162, 138, 0.12), transparent 60%);
}

html[data-theme="twilight"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(90, 130, 200, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 85% 85%, rgba(120, 90, 200, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 70%, rgba(224, 125, 46, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0a1020 0%, #0e1528 50%, #0a1020 100%);
}

html[data-theme="twilight"] .hero-spotlight {
  background:
    radial-gradient(
      circle 45vmax at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
      rgba(130, 170, 255, 0.14) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle 38vmax at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
      rgba(75, 162, 138, 0.14) 0%,
      transparent 50%
    );
}

html[data-theme="twilight"] .shape-wrap--1 .shape {
  background: rgba(100, 160, 220, 0.38);
}

html[data-theme="twilight"] .shape-wrap--2 .shape {
  background: rgba(160, 120, 220, 0.28);
}

html[data-theme="twilight"] .shape-wrap--3 .shape {
  background: rgba(50, 100, 160, 0.32);
}

html[data-theme="twilight"] .shape-wrap--4 .shape {
  background: rgba(75, 162, 138, 0.28);
}

html[data-theme="twilight"] .shape-wrap--5 .shape {
  background: rgba(120, 100, 200, 0.22);
}

html[data-theme="twilight"] .shape-wrap--6 .shape {
  background: rgba(60, 110, 180, 0.26);
}

html[data-theme="twilight"] .section--services {
  background: #0d1526;
}

html[data-theme="twilight"] .section--showcase {
  background: #080d18;
}

html[data-theme="twilight"] .section--fit {
  background: #0a1222;
}

html[data-theme="twilight"] .section--why {
  background: #0d1526;
}

html[data-theme="twilight"] .section--cta {
  background: linear-gradient(180deg, #080d18 0%, #0d1526 50%, #080d18 100%);
}

html[data-theme="twilight"] .service-card {
  background: #121c2e;
  border-color: rgba(120, 160, 220, 0.1);
}

html[data-theme="twilight"] .service-card:hover {
  border-color: rgba(100, 180, 220, 0.35);
  box-shadow: 0 8px 24px rgba(0, 12, 40, 0.4);
}

html[data-theme="twilight"] .case-study {
  background: #121c2e;
  border-color: rgba(120, 160, 220, 0.1);
}

html[data-theme="twilight"] .case-study:hover {
  border-color: rgba(100, 180, 220, 0.3);
  box-shadow: 0 12px 32px rgba(0, 12, 40, 0.4);
}

html[data-theme="twilight"] .mockup-card {
  background: #121c2e;
  border-color: rgba(120, 160, 220, 0.1);
}

html[data-theme="twilight"] .mockup-screen--screenshot {
  background: #0d1526;
}

html[data-theme="twilight"] .mockup-screenshot-fallback {
  background: #0d1526;
}

html[data-theme="twilight"] .mockup-chrome {
  background: #1a2840;
}

html[data-theme="twilight"] .mockup-screen {
  background: linear-gradient(180deg, #121c2e 0%, #0d1526 100%);
}

html[data-theme="twilight"] .site-footer {
  background: #060a14;
  border-top-color: rgba(120, 160, 220, 0.08);
}

html[data-theme="twilight"] .site-footer a {
  color: #6fc9b4;
}

html[data-theme="twilight"] .site-footer a:hover {
  color: #e07d2e;
}

html[data-theme="twilight"] .hero-kicker {
  color: #8fd4e8;
}

html[data-theme="twilight"] .service-num {
  color: #6fc9b4;
}

html[data-theme="twilight"] .case-study__kicker {
  color: #8fd4e8;
}

html[data-theme="twilight"] .cookie-banner__inner {
  background: rgba(6, 10, 22, 0.98);
  border-color: rgba(120, 160, 220, 0.1);
}

html[data-theme="twilight"] .cookie-banner__btn.btn-secondary {
  color: rgba(230, 232, 235, 0.95);
  border-color: rgba(230, 232, 235, 0.75);
}

html[data-theme="twilight"] .cookie-banner__btn.btn-secondary:hover {
  border-color: #4ba28a;
  background: rgba(75, 162, 138, 0.18);
  background-color: rgba(75, 162, 138, 0.18);
}

/* Reef theme: teal + orange forward (dark forest base, saturated accents) */
html[data-theme="reef"] body {
  color: #e6e8eb;
  background: #0d1615;
}

html[data-theme="reef"] .site-header {
  background: rgba(12, 20, 18, 0.92);
  border-bottom-color: rgba(75, 162, 138, 0.14);
}

html[data-theme="reef"] .nav {
  background: rgba(10, 18, 16, 0.98);
  border-color: rgba(75, 162, 138, 0.18);
  box-shadow: 0 18px 50px rgba(0, 24, 18, 0.55);
}

html[data-theme="reef"] .logo {
  background: rgba(75, 162, 138, 0.12);
  border-color: rgba(224, 125, 46, 0.22);
  box-shadow:
    0 18px 50px rgba(0, 20, 14, 0.55),
    inset 0 1px 0 rgba(94, 212, 184, 0.12);
}

html[data-theme="reef"] .logo::before {
  background:
    radial-gradient(circle at 22% 10%, rgba(94, 212, 184, 0.35), transparent 52%),
    radial-gradient(circle at 88% 92%, rgba(224, 125, 46, 0.28), transparent 58%);
}

html[data-theme="reef"] .hero-bg {
  background:
    radial-gradient(ellipse 85% 65% at 45% 5%, rgba(75, 162, 138, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse 75% 55% at 90% 80%, rgba(224, 125, 46, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 12% 65%, rgba(240, 160, 96, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #0d1615 0%, #10221c 48%, #0d1615 100%);
}

html[data-theme="reef"] .hero-spotlight {
  background:
    radial-gradient(
      circle 45vmax at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
      rgba(224, 125, 46, 0.16) 0%,
      transparent 44%
    ),
    radial-gradient(
      circle 38vmax at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
      rgba(75, 162, 138, 0.22) 0%,
      transparent 50%
    );
}

html[data-theme="reef"] .shape-wrap--1 .shape {
  background: rgba(75, 162, 138, 0.48);
}

html[data-theme="reef"] .shape-wrap--2 .shape {
  background: rgba(224, 125, 46, 0.42);
}

html[data-theme="reef"] .shape-wrap--3 .shape {
  background: rgba(94, 212, 184, 0.32);
}

html[data-theme="reef"] .shape-wrap--4 .shape {
  background: rgba(75, 162, 138, 0.38);
}

html[data-theme="reef"] .shape-wrap--5 .shape {
  background: rgba(240, 160, 96, 0.32);
}

html[data-theme="reef"] .shape-wrap--6 .shape {
  background: rgba(224, 125, 46, 0.28);
}

html[data-theme="reef"] .section--services {
  background: #10221c;
}

html[data-theme="reef"] .section--showcase {
  background: #0a1412;
}

html[data-theme="reef"] .section--fit {
  background: #0c1816;
}

html[data-theme="reef"] .section--why {
  background: #10221c;
}

html[data-theme="reef"] .section--cta {
  background: linear-gradient(180deg, #0a1412 0%, #0e1c18 42%, #122a22 100%);
}

html[data-theme="reef"] .service-card {
  background: #142824;
  border-color: rgba(75, 162, 138, 0.18);
}

html[data-theme="reef"] .service-card:hover {
  border-color: rgba(224, 125, 46, 0.45);
  box-shadow: 0 8px 28px rgba(0, 28, 20, 0.45);
}

html[data-theme="reef"] .case-study {
  background: #142824;
  border-color: rgba(75, 162, 138, 0.16);
}

html[data-theme="reef"] .case-study:hover {
  border-color: rgba(224, 125, 46, 0.38);
  box-shadow: 0 12px 32px rgba(0, 28, 20, 0.45);
}

html[data-theme="reef"] .mockup-card {
  background: #142824;
  border-color: rgba(75, 162, 138, 0.14);
}

html[data-theme="reef"] .mockup-screen--screenshot {
  background: #0e1c18;
}

html[data-theme="reef"] .mockup-screenshot-fallback {
  background: #0e1c18;
}

html[data-theme="reef"] .mockup-chrome {
  background: #1a3630;
}

html[data-theme="reef"] .mockup-screen {
  background: linear-gradient(180deg, #142824 0%, #0e1c18 100%);
}

html[data-theme="reef"] .site-footer {
  background: #060d0c;
  border-top-color: rgba(75, 162, 138, 0.12);
}

html[data-theme="reef"] .site-footer a {
  color: #5ed4b8;
}

html[data-theme="reef"] .site-footer a:hover {
  color: #e07d2e;
}

html[data-theme="reef"] .hero-kicker {
  color: #5ed4b8;
}

html[data-theme="reef"] .service-num {
  color: #f0a060;
}

html[data-theme="reef"] .case-study__kicker {
  color: #e07d2e;
}

html[data-theme="reef"] .cookie-banner__inner {
  background: rgba(8, 16, 14, 0.98);
  border-color: rgba(75, 162, 138, 0.16);
}

html[data-theme="reef"] .cookie-banner__btn.btn-secondary {
  color: rgba(230, 232, 235, 0.95);
  border-color: rgba(230, 232, 235, 0.75);
}

html[data-theme="reef"] .cookie-banner__btn.btn-secondary:hover {
  border-color: #e07d2e;
  background: rgba(224, 125, 46, 0.15);
  background-color: rgba(224, 125, 46, 0.15);
}

/* Ember theme: orange-forward backgrounds, teal stripes / bands for relief */
html[data-theme="ember"] body {
  color: #e6e8eb;
  background: #18100c;
}

html[data-theme="ember"] .site-header {
  background: rgba(22, 14, 10, 0.93);
  border-bottom-color: rgba(224, 125, 46, 0.14);
}

html[data-theme="ember"] .nav {
  background: rgba(20, 12, 8, 0.98);
  border-color: rgba(224, 125, 46, 0.16);
  box-shadow: 0 18px 50px rgba(40, 12, 0, 0.5);
}

html[data-theme="ember"] .logo {
  background: rgba(224, 125, 46, 0.1);
  border-color: rgba(75, 162, 138, 0.22);
  box-shadow:
    0 18px 50px rgba(32, 10, 0, 0.55),
    inset 0 1px 0 rgba(255, 200, 160, 0.08);
}

html[data-theme="ember"] .logo::before {
  background:
    radial-gradient(circle at 22% 12%, rgba(224, 125, 46, 0.32), transparent 50%),
    radial-gradient(circle at 85% 90%, rgba(75, 162, 138, 0.2), transparent 55%);
}

html[data-theme="ember"] .hero-bg {
  background:
    /* light veils (top) — break bands like blend’s lifted surfaces */
    radial-gradient(ellipse 68% 24% at 20% 42%, rgba(255, 255, 255, 0.1) 0%, transparent 52%),
    radial-gradient(ellipse 58% 20% at 78% 46%, rgba(255, 252, 248, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 88% 26% at 50% 54%, rgba(255, 255, 255, 0.055) 0%, transparent 54%),
    radial-gradient(ellipse 40% 16% at 48% 38%, rgba(255, 255, 255, 0.06) 0%, transparent 48%),
    /* orange wash */
    radial-gradient(ellipse 95% 72% at 50% -8%, rgba(224, 125, 46, 0.3) 0%, transparent 46%),
    radial-gradient(ellipse 65% 55% at 5% 95%, rgba(200, 85, 35, 0.2) 0%, transparent 52%),
    /* teal only as soft blobs — no hard horizontal strip */
    radial-gradient(ellipse 88% 38% at 50% 44%, rgba(75, 162, 138, 0.075) 0%, transparent 58%),
    radial-gradient(ellipse 48% 32% at 94% 36%, rgba(75, 162, 138, 0.055) 0%, transparent 50%),
    linear-gradient(180deg, #1a120e 0%, #171008 45%, #16100c 58%, #140e0a 100%);
}

html[data-theme="ember"] .hero-spotlight {
  background:
    radial-gradient(
      circle 42vmax at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
      rgba(224, 125, 46, 0.18) 0%,
      transparent 44%
    ),
    radial-gradient(
      circle 36vmax at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
      rgba(255, 255, 255, 0.1) 0%,
      transparent 48%
    );
}

html[data-theme="ember"] .shape-wrap--1 .shape {
  background: rgba(224, 125, 46, 0.42);
}

html[data-theme="ember"] .shape-wrap--2 .shape {
  background: rgba(255, 248, 242, 0.14);
}

html[data-theme="ember"] .shape-wrap--3 .shape {
  background: rgba(240, 160, 96, 0.28);
}

html[data-theme="ember"] .shape-wrap--4 .shape {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="ember"] .shape-wrap--5 .shape {
  background: rgba(224, 125, 46, 0.34);
}

html[data-theme="ember"] .shape-wrap--6 .shape {
  background: rgba(75, 162, 138, 0.24);
}

/* Ember sections: light bands like blend (warm off-white), dark showcase/fit/cta */
html[data-theme="ember"] .section--services,
html[data-theme="ember"] .section--why {
  background: #f7f4f1;
}

html[data-theme="ember"] .section--showcase {
  background: #1a140f;
}

html[data-theme="ember"] .section--fit {
  background: #1c1510;
}

html[data-theme="ember"] .section--cta {
  background: linear-gradient(180deg, #1c1510 0%, #140e0a 72%, #140e0a 100%);
}

html[data-theme="ember"] .section--services h2,
html[data-theme="ember"] .section--why h2 {
  color: #1d5366;
}

html[data-theme="ember"] .section--services p,
html[data-theme="ember"] .section--why p,
html[data-theme="ember"] .section--services h3,
html[data-theme="ember"] .section--why blockquote,
html[data-theme="ember"] .section--services .section-intro,
html[data-theme="ember"] .section--why .section-intro,
html[data-theme="ember"] .section--services .pullquote,
html[data-theme="ember"] .section--why .pullquote {
  color: rgba(15, 20, 25, 0.82);
}

html[data-theme="ember"] .section--services .section-inner ul li,
html[data-theme="ember"] .section--why .section-inner ul li {
  color: rgba(15, 20, 25, 0.78);
}

html[data-theme="ember"] .section--fit .section-inner ul li {
  color: rgba(230, 232, 235, 0.85);
}

html[data-theme="ember"] .service-card {
  background: #ffffff;
  border-color: rgba(15, 20, 25, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

html[data-theme="ember"] .service-card:hover {
  border-color: rgba(75, 162, 138, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

html[data-theme="ember"] .service-card p {
  color: rgba(15, 20, 25, 0.75);
}

html[data-theme="ember"] .service-card h3 {
  color: #0f1419;
}

html[data-theme="ember"] .case-study {
  background: #ffffff;
  border-color: rgba(15, 20, 25, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

html[data-theme="ember"] .case-study:hover {
  border-color: rgba(75, 162, 138, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

html[data-theme="ember"] .case-study__title {
  color: #0f1419;
}

html[data-theme="ember"] .case-study__text {
  color: rgba(15, 20, 25, 0.75);
}

html[data-theme="ember"] .case-study__content {
  color: rgba(15, 20, 25, 0.82);
}

html[data-theme="ember"] .case-study__list {
  color: rgba(15, 20, 25, 0.82);
}

html[data-theme="ember"] .case-study .btn-secondary {
  color: #0f1419;
  border-color: rgba(15, 20, 25, 0.35);
}

html[data-theme="ember"] .case-study .btn-secondary:hover {
  color: #0f1419;
  border-color: #4ba28a;
  background: rgba(75, 162, 138, 0.12);
  background-color: rgba(75, 162, 138, 0.12);
}

html[data-theme="ember"] .mockup-card {
  background: #ffffff;
  border-color: rgba(15, 20, 25, 0.08);
}

html[data-theme="ember"] .mockup-screen--screenshot {
  background: #eceae7;
}

html[data-theme="ember"] .mockup-screenshot-fallback {
  background: #eceae7;
}

html[data-theme="ember"] .mockup-chrome {
  background: #ebe8e5;
}

html[data-theme="ember"] .mockup-screen {
  background: linear-gradient(180deg, #ffffff 0%, #f0eeeb 100%);
}

html[data-theme="ember"] .site-footer {
  background: #0c0806;
  border-top-color: rgba(75, 162, 138, 0.14);
}

html[data-theme="ember"] .site-footer a {
  color: #4ba28a;
}

html[data-theme="ember"] .site-footer a:hover {
  color: #e07d2e;
}

html[data-theme="ember"] .hero-kicker {
  color: #f0a060;
}

html[data-theme="ember"] .service-num {
  color: #1d5366;
  opacity: 0.9;
}

html[data-theme="ember"] .case-study__kicker {
  color: #1d5366;
}

html[data-theme="ember"] .cookie-banner__inner {
  background: rgba(18, 10, 6, 0.98);
  border-color: rgba(224, 125, 46, 0.18);
  box-shadow: inset 0 2px 0 0 rgba(45, 107, 92, 0.5);
}

html[data-theme="ember"] .cookie-banner__btn.btn-secondary {
  color: rgba(230, 232, 235, 0.95);
  border-color: rgba(230, 232, 235, 0.75);
}

html[data-theme="ember"] .cookie-banner__btn.btn-secondary:hover {
  border-color: #4ba28a;
  background: rgba(75, 162, 138, 0.16);
  background-color: rgba(75, 162, 138, 0.16);
}
