/* ==========================================================================
   THE WEBSITE DESIGN STUDIO — SHARED STYLES
   1.  Tokens (light and dark themes)
   2.  Base and reset
   3.  Layout containers and anchor offsets
   4.  Header, navigation and mobile menu
   5.  Shared components: section bands, buttons, cards and inverted states
   6.  Homepage: hero, marquees and project strip
   7.  Services
   8.  Pricing summary (homepage)
   9.  Process
   10. Selected clients
   11. Contact Us section
   12. Footer and persistent contact bar
   13. Inner pages: introductions, About Us, questions, detailed pricing,
       service pages, Contact Us
   14. Responsive rules (one block per breakpoint)
   15. Reduced motion
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  color-scheme: light;
  --brand-navy: #071B36;
  --brand-black: #020409;
  --brand-control-navy: #123D73;
  --brand-gradient: linear-gradient(90deg, var(--brand-control-navy) 0%, #0A2344 48%, var(--brand-black) 100%);
  --color-dark: #081426;
  --color-light: #EEF1F6;
  --white: #FFFFFF;

  --bg-page: var(--color-light);
  --header-bg: rgba(238, 241, 246, 0.97);
  --header-shadow: rgba(8, 20, 38, 0.12);
  --page-gradient: none;
  --bg-surface: var(--white);
  --text-primary: var(--color-dark);
  --gray-secondary: #5D697B;
  --separator: #788598;
  --separator-subtle: rgba(8, 20, 38, 0.25);
  --border-strong: var(--color-dark);
  --action-bg: var(--brand-navy);
  --action-image: var(--brand-gradient);
  --action-hover-image: none;
  --on-invert-action-image: none;
  --action-text: var(--white);
  --invert-bg: var(--brand-navy);
  --invert-image: var(--brand-gradient);
  --invert-text: var(--white);
  --invert-muted: var(--color-light);
  --invert-separator: rgba(255, 255, 255, 0.25);

  /* Darkened from #27AF40 so white button text meets the 4.5:1 contrast minimum. */
  --whatsapp: #1E8731;
  --whatsapp-hover: #1A762B;
  --linkedin: #0A66C2;
  --linkedin-hover: #0058AF;

  --font-sans: Helvetica, Arial, sans-serif;

  --reading-width: 1000px;
  --wide-width: 1360px;
  --outer-gutter: 68px;
  --header-control-width: 148px;

  /* Sticky header size; anchor targets stop this far below the top edge. */
  --header-height: 68px;
  --header-padding-y: 12px;
  --anchor-gap: 32px;
  --anchor-offset: calc(var(--header-height) + var(--anchor-gap));

  /* Space below each main section and below section heading bands. */
  --section-space: 76px;
  /* Space above and below the homepage text marquees. */
  --marquee-space-above: 62px;
  --marquee-space-below: 52px;
  --band-padding-y: 22px;
  --band-space: 44px;

  --transition-btn: 200ms ease;
  --transition-panel: 220ms ease;

  --text-marquee-duration: 38s;
  --project-marquee-duration: 145s;
}

/* One document-height gradient keeps the dark canvas continuous through every
   section. The same navy-to-black palette fills dark controls in light mode. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: var(--brand-black);
  --header-bg: rgba(7, 27, 54, 0.97);
  --header-shadow: rgba(0, 0, 0, 0.28);
  --page-gradient: linear-gradient(180deg, var(--brand-navy) 0%, #051226 30%, #030A15 64%, var(--brand-black) 100%);
  --bg-surface: #071426;
  --text-primary: var(--color-light);
  --gray-secondary: #BCC7D8;
  --separator: rgba(197, 212, 235, 0.5);
  --separator-subtle: rgba(197, 212, 235, 0.25);
  --border-strong: var(--color-light);
  --action-bg: var(--color-light);
  --action-image: none;
  --action-hover-image: var(--brand-gradient);
  --on-invert-action-image: var(--brand-gradient);
  --action-text: var(--color-dark);
  --invert-bg: var(--color-light);
  --invert-image: none;
  --invert-text: var(--color-dark);
  --invert-muted: var(--color-dark);
  --invert-separator: rgba(8, 20, 38, 0.25);
  /* A faint tone over --bg-surface: top to bottom on cards, left to right on
     full-width bands (the direction of their light-mode hover). */
  --surface-image: linear-gradient(180deg, #0A2344 0%, var(--bg-surface) 100%);
  --band-image: linear-gradient(90deg, #0A2344 0%, var(--bg-surface) 100%);
}

/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background-color: var(--bg-page);
  background-image: var(--page-gradient);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.5;
  overflow-x: clip;
  padding-bottom: 110px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 0;
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

/* Hidden until reached with the keyboard; jumps past the header to the content. */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background-color: var(--action-bg);
  background-image: var(--action-image);
  color: var(--action-text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   3. LAYOUT CONTAINERS & ANCHOR OFFSETS
   ========================================================================== */
.container-reading,
.container-wide {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--outer-gutter);
  padding-right: var(--outer-gutter);
}

.container-reading {
  max-width: calc(var(--reading-width) + (var(--outer-gutter) * 2));
}

.container-wide {
  max-width: calc(var(--wide-width) + (var(--outer-gutter) * 2));
}

/* Every in-page link target stops the same distance below the sticky header. */
main section[id],
.project-question {
  scroll-margin-top: var(--anchor-offset);
}

/* Pricing cards sit 26px apart, so they stop closer than the usual gap;
   otherwise the bottom border of the card above shows under the header. */
.pricing-detail {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

#main-content {
  scroll-margin-top: var(--header-height);
}

/* A heading inside a band also clears the band's top padding and border. */
main h2[id] {
  scroll-margin-top: calc(var(--anchor-offset) + var(--band-padding-y) + 1px);
}

/* ==========================================================================
   4. HEADER, NAVIGATION & MOBILE MENU
   ========================================================================== */
.top-spacer {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  width: 100%;
  background-color: var(--header-bg);
  box-shadow: 0 4px 16px var(--header-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.theme-toolbar {
  min-height: var(--header-height);
  padding-top: var(--header-padding-y);
  padding-bottom: var(--header-padding-y);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.full-rule {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--separator);
  margin: 0;
}

.theme-toggle,
.menu-toggle,
.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: var(--header-control-width);
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  background-color: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 17px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background-color var(--transition-btn), color var(--transition-btn);
}

.theme-toggle:hover,
.menu-toggle:hover,
.menu-close:hover,
.testimonial-arrow:hover,
.cookie-settings-button:hover {
  background-color: var(--invert-bg);
  background-image: var(--invert-image);
  color: var(--invert-text);
}

.theme-toggle svg,
.menu-toggle svg,
.menu-close svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.theme-icon--sun,
[data-theme="dark"] .theme-icon--moon {
  display: none;
}

[data-theme="dark"] .theme-icon--sun {
  display: block;
}

.header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
}

/* Desktop page labels */
.desktop-navigation {
  grid-column: 2;
}

.desktop-navigation-list {
  display: flex;
  align-items: center;
  gap: clamp(32px, 3.5vw, 52px);
  list-style: none;
}

.desktop-navigation-label,
.mobile-navigation-label {
  color: var(--gray-secondary);
  text-decoration: none;
  transition: color var(--transition-btn);
}

.desktop-navigation-label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.desktop-navigation-label[href]:hover,
.mobile-navigation-label[href]:hover,
.desktop-navigation-label[aria-current="page"],
.mobile-navigation-label[aria-current="page"] {
  color: var(--text-primary);
}

.desktop-navigation-label[href]:focus-visible,
.mobile-navigation-label[href]:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 6px;
}

/* Full-screen mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background-color: var(--bg-page);
  background-image: var(--page-gradient);
  color: var(--text-primary);
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu[open] {
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-visible {
  transform: translateX(0);
}

.mobile-menu::backdrop {
  background: transparent;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  min-height: var(--header-height);
  padding-top: var(--header-padding-y);
  padding-bottom: var(--header-padding-y);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 280px;
  padding: 16px var(--outer-gutter);
}

.mobile-navigation-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vh, 28px);
  list-style: none;
  text-align: center;
}

.mobile-navigation-label {
  font-size: clamp(26px, 7.5vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.mobile-menu-footer {
  flex-shrink: 0;
  padding-top: 20px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-menu-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 0 var(--outer-gutter);
  list-style: none;
  text-align: center;
}

.mobile-menu-legal li {
  display: flex;
  justify-content: center;
}

.mobile-menu-legal .footer-legal-label {
  min-height: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.4;
}

.mobile-menu-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-menu-contact .persistent-btn {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 18px 8px;
  gap: 10px;
  font-size: clamp(14px, 4.6vw, 18px);
}

html.mobile-menu-open {
  overflow: hidden;
}

html.mobile-menu-open body {
  position: fixed;
  top: var(--menu-scroll-offset, 0px);
  width: 100%;
  overflow: hidden;
}

html.mobile-menu-visible .theme-toggle {
  visibility: hidden;
}

/* ==========================================================================
   5. SHARED COMPONENTS
   ========================================================================== */
.section-header-band {
  width: 100%;
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
  padding: var(--band-padding-y) var(--outer-gutter);
  margin-bottom: var(--band-space);
  text-align: center;
  background-color: transparent;
}

.section-heading {
  font-size: 29px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  line-height: 1.25;
  color: var(--text-primary);
  padding-left: 0.19em; /* Optical balance for letter-spacing */
}

.section-intro {
  max-width: var(--reading-width);
  margin: 0 auto 48px auto;
  text-align: center;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Rectangular primary buttons. Every content button (hero, cards, pricing
   rows, forms) uses this size; do not shrink it per component. */
.btn-rect {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background-color: var(--action-bg);
  background-image: var(--action-image);
  color: var(--action-text);
  border: 1px solid var(--action-bg);
  border-radius: 0;
  padding: 16px 26px;
  font-size: 18px;
  font-weight: 600;
  /* Whole-pixel line box: with Helvetica capitals this centers the text. */
  line-height: 23px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color var(--transition-btn),
    color var(--transition-btn),
    border-color var(--transition-btn);
}

.btn-rect .btn-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-btn);
}

.btn-rect:hover,
.btn-rect:focus-visible {
  background-color: var(--bg-surface);
  background-image: var(--action-hover-image);
  color: var(--text-primary);
  border-color: var(--border-strong);
  outline: none;
}

.btn-rect:focus-visible,
.persistent-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--bg-page), 0 0 0 4px var(--text-primary);
}

.btn-rect:hover .btn-arrow,
.btn-rect:focus-visible .btn-arrow,
.service-cta:hover .btn-arrow,
.service-cta:focus-visible .btn-arrow,
.service-panel:hover .service-cta .btn-arrow {
  transform: translateX(4px);
}

/* Shared keyboard focus ring for header controls, cards and link tiles. */
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.menu-close:focus-visible,
.testimonial-arrow:focus-visible,
.testimonial-track:focus-visible,
.cookie-settings-button:focus-visible,
.process-col:focus-visible,
.pricing-service-navigation a:focus-visible,
.capabilities-top a:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 4px;
}

/* Cards and rows: white surface with a subtle border in both themes. */
.service-panel,
.pricing-row,
.process-col,
.about-principle,
.project-question,
.pricing-detail,
.pricing-agreement-panel,
.form-option-box,
.testimonial-card {
  border: 1px solid var(--separator-subtle);
  background-color: var(--bg-surface);
  background-image: var(--surface-image, none);
  color: var(--text-primary);
}

.service-panel,
.pricing-row,
.process-col,
.about-principle,
.pricing-detail,
.pricing-agreement-panel,
.form-option-box,
.testimonial-card {
  transition:
    background-color var(--transition-panel),
    color var(--transition-panel),
    border-color var(--transition-panel);
}

/* Inverted hover/selected state shared by cards, rows, questions and tiles. */
.service-panel:hover,
.service-panel:focus-within,
.pricing-row:hover,
.pricing-row:focus-within,
.process-col:hover,
.process-col.is-active,
.about-principle:hover,
.pricing-detail:hover,
.pricing-detail:focus-within,
.project-question[open] summary,
.project-question summary:hover,
.pricing-service-navigation a:hover,
.pricing-agreement-panel:hover,
.testimonial-card:hover,
.form-option:hover .form-option-box,
.form-option input:checked + .form-option-box {
  background-color: var(--invert-bg);
  background-image: var(--invert-image);
  color: var(--invert-text);
}

.service-panel:hover,
.service-panel:focus-within,
.pricing-row:hover,
.pricing-row:focus-within,
.process-col:hover,
.process-col.is-active,
.about-principle:hover,
.pricing-detail:hover,
.pricing-detail:focus-within,
.pricing-agreement-panel:hover,
.testimonial-card:hover,
.form-option:hover .form-option-box,
.form-option input:checked + .form-option-box {
  border-color: var(--invert-bg);
}

/* The action button inside an inverted card switches to the light surface. */
.service-panel:hover .service-cta,
.service-panel:focus-within .service-cta,
.pricing-row:hover .pricing-action,
.pricing-row:focus-within .pricing-action {
  background-color: var(--bg-surface);
  background-image: var(--on-invert-action-image);
  border-color: var(--bg-surface);
  color: var(--text-primary);
}

/* Numbered cards: Process steps and About Us principles. */
.process-step-number,
.about-principle-number {
  margin-bottom: 26px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.process-col-title,
.about-principle-title {
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 400;
  -webkit-text-stroke: 0.2px currentColor;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.process-col-text,
.about-principle p {
  font-size: 18px;
  line-height: 1.5;
}

.process-col-text {
  color: var(--gray-secondary);
  transition: color var(--transition-panel);
}

.process-col:hover .process-col-text,
.process-col.is-active .process-col-text {
  color: var(--invert-muted);
}

/* Dash-prefixed scope lists used in service cards and pricing details. */
.service-scope-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  line-height: 1.5;
}

.service-scope-item::before {
  content: "—";
  flex-shrink: 0;
}

/* ==========================================================================
   6. HOMEPAGE — HERO, MARQUEES & PROJECT STRIP
   ========================================================================== */
.hero-section {
  padding-top: 56px;
  padding-bottom: var(--marquee-space-above);
  background-color: transparent;
}

.hero-title {
  font-size: clamp(28px, 4.1vw, 57px);
  white-space: nowrap;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.4px;
  color: var(--text-primary);
  margin-bottom: 26px;
  text-align: center;
}

.hero-brand-line {
  white-space: nowrap;
}

/* Splits a title too long for one line into two balanced lines. */
.hero-title-line {
  display: block;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-primary);
  max-width: var(--reading-width);
  margin: 0 auto 38px;
  text-align: center;
}

.hero-lead strong {
  font-weight: 600;
  color: var(--text-primary);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.hero-actions .btn-rect {
  width: 100%;
}

/* Both marquees: a track holding two identical groups that loops seamlessly. */
.marquee-viewport,
.project-marquee-viewport {
  width: 100%;
  overflow: hidden;
  outline: none;
}

/* The project images are added by script.js; reserve the strip's final height
   (frame width minus 10px padding and 1px border on each side, at the
   500 × 651 image ratio) so nothing below moves when they appear. */
.project-marquee-viewport {
  --project-frame-width: 305px;
  min-height: calc((var(--project-frame-width) - 22px) * 651 / 500 + 22px);
}

.marquee-viewport:focus-visible,
.project-marquee-viewport:focus-visible {
  box-shadow: inset 0 0 0 2px currentColor;
}

/* Moving content pauses while pointed at and while focused with the keyboard
   (WCAG 2.2.2). :focus-visible, so a mouse click does not leave it stopped;
   on touch screens (no hover) a tap still pauses it until the next tap elsewhere. */
.marquee-viewport:hover .service-marquee-track,
.marquee-viewport:focus-visible .service-marquee-track,
.project-marquee-viewport:hover .project-marquee-track,
.project-marquee-viewport:focus-visible .project-marquee-track {
  animation-play-state: paused;
}

@media (hover: none) {
  .marquee-viewport:focus .service-marquee-track,
  .project-marquee-viewport:focus .project-marquee-track {
    animation-play-state: paused;
  }
}

.service-marquee-track,
.project-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.service-marquee-track {
  animation: marquee-left var(--text-marquee-duration) linear infinite;
}

.project-marquee-track {
  animation: marquee-right var(--project-marquee-duration) linear var(--project-marquee-delay, 0s) infinite;
}

@keyframes marquee-left {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee-right {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Text marquee */
.service-marquee-section {
  width: 100%;
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
  background-color: transparent;
  background-image: var(--band-image, none);
  overflow: hidden;
  color: var(--text-primary);
  transition: background-color var(--transition-panel), color var(--transition-panel);
}

.service-marquee-section:hover,
.service-marquee-section:has(:focus-visible) {
  background-color: var(--invert-bg);
  background-image: var(--invert-image);
  color: var(--invert-muted);
}

.service-marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 22px 0;
}

.service-marquee-item {
  display: inline-flex;
  align-items: center;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: inherit;
  white-space: nowrap;
}

.service-marquee-sep {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: currentColor;
  border-radius: 50%;
  margin: 0 42px;
  flex-shrink: 0;
}

.scope-marquee {
  margin-top: var(--marquee-space-above);
}

/* Project screenshot marquee */
.project-strip-section {
  padding-top: var(--marquee-space-below);
  padding-bottom: 64px;
  background-color: transparent;
  overflow: hidden;
}

.project-marquee-group {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.project-frame {
  width: var(--project-frame-width, 305px);
  height: auto;
  align-self: flex-start;
  margin-right: 22px;
  background-color: var(--white);
  border: 1px solid var(--separator-subtle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  transition: border-color var(--transition-btn);
}

.project-frame:hover {
  border-color: var(--border-strong);
}

/* A fixed ratio (the 500 × 651 screenshots) keeps the strip height stable while images load. */
.project-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 500 / 651;
  object-fit: contain;
  object-position: center top;
  display: block;
}

/* ==========================================================================
   7. SERVICES
   ========================================================================== */
.services-section {
  padding-bottom: var(--section-space);
  background-color: transparent;
}

/* The homepage section ends with the capabilities marquee. */
.services-section--home {
  padding-bottom: var(--marquee-space-below);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  align-items: stretch;
}

.service-panel {
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-panel-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-icon {
  width: 32px;
  height: 32px;
  color: var(--text-primary);
  margin-bottom: 24px;
  transition: color var(--transition-panel);
  flex-shrink: 0;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-title {
  font-size: 23px;
  font-weight: 400;
  /* Helvetica has no medium face; a light stroke gives an intermediate weight. */
  -webkit-text-stroke: 0.2px currentColor;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 18px;
  transition: color var(--transition-panel);
}

.service-desc {
  font-size: 19px;
  line-height: 1.5;
  color: var(--gray-secondary);
  margin-bottom: 24px;
  transition: color var(--transition-panel);
}

.service-scope-list {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--separator-subtle);
  padding-top: 20px;
  margin-bottom: 32px;
  color: var(--text-primary);
  transition: color var(--transition-panel), border-color var(--transition-panel);
}

.service-price {
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.5;
  text-decoration: none;
}

.service-price span {
  font-weight: 600;
  white-space: nowrap;
}

.service-price:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.service-price:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.service-cta {
  text-decoration: none;
  align-self: flex-start;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background-color: var(--action-bg);
  background-image: var(--action-image);
  color: var(--action-text);
  border: 1px solid var(--action-bg);
  padding: 16px 26px;
  font-size: 18px;
  line-height: 23px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition:
    background-color var(--transition-panel),
    color var(--transition-panel),
    border-color var(--transition-panel);
}

.service-cta .btn-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-btn);
}

.service-cta:focus-visible {
  outline: 2px solid var(--invert-text);
  outline-offset: 2px;
}

/* Text inside an inverted service card */
.service-panel:hover .service-icon,
.service-panel:focus-within .service-icon,
.service-panel:hover .service-title,
.service-panel:focus-within .service-title,
.service-panel:hover .service-price,
.service-panel:focus-within .service-price {
  color: var(--invert-text);
}

.service-panel:hover .service-desc,
.service-panel:focus-within .service-desc,
.service-panel:hover .capability-tag {
  color: var(--invert-muted);
}

.service-panel:hover .service-scope-list,
.service-panel:focus-within .service-scope-list {
  color: var(--invert-muted);
  border-color: var(--invert-separator);
}

/* ==========================================================================
   8. PRICING SUMMARY (HOMEPAGE)
   ========================================================================== */
.pricing-section {
  padding-bottom: var(--section-space);
}

.pricing-jump {
  display: flex;
  justify-content: center;
  margin: -8px 0 44px;
}

.pricing-list {
  list-style: none;
  display: grid;
  gap: 18px;
}

.pricing-row {
  display: grid;
  /* The price column fits a range ("$100 – $1,000 USD") on one line, the same
     width in every row so the rows stay aligned; longer ranges wrap at the
     dash (.price-part). */
  grid-template-columns: minmax(0, 1fr) 240px auto;
  align-items: center;
  gap: 28px;
  padding: 28px 30px;
}

.pricing-row:hover .pricing-service-summary,
.pricing-row:focus-within .pricing-service-summary,
.pricing-row:hover .pricing-starting,
.pricing-row:focus-within .pricing-starting,
.pricing-row:hover .pricing-currency,
.pricing-row:focus-within .pricing-currency {
  color: var(--invert-muted);
}

.pricing-row .pricing-action:focus-visible {
  outline: 2px solid var(--invert-text);
  outline-offset: 3px;
  box-shadow: none;
}

/* Same type as the How We Work card titles and text. */
.pricing-service-title {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-text-stroke: 0.2px currentColor;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.pricing-service-summary {
  font-size: 18px;
  line-height: 1.5;
  color: var(--gray-secondary);
}

.pricing-amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.pricing-starting {
  flex-basis: 100%;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-secondary);
}

.pricing-number {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.pricing-currency {
  font-size: 14px;
  color: var(--gray-secondary);
}

/* One amount (the last one with its currency) from price_html(): a price range
   wraps only at the dash. Also used by the Pricing cards (§13). */
.price-part {
  white-space: nowrap;
}

.pricing-overview-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.pricing-overview-cta .btn-rect {
  max-width: 100%;
}

/* ==========================================================================
   9. PROCESS
   ========================================================================== */
.process-section {
  padding-bottom: var(--section-space);
  background-color: transparent;
}

.process-summary-block {
  --process-gap: 26px;
}

.process-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px var(--process-gap);
  align-items: stretch;
}

.process-step {
  display: contents;
}

.process-col {
  grid-column: calc(var(--process-index) + 1);
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 30px;
}

.process-description {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  padding: 32px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
}

.process-description::before {
  content: "";
  position: absolute;
  top: -10px;
  /* Align the pointer with the center of the selected card. */
  left: calc((100% - 2 * var(--process-gap)) / 6 + var(--process-index) * ((100% + var(--process-gap)) / 3) - 10px);
  width: 18px;
  height: 18px;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
  transform: rotate(45deg);
}

.process-description-title {
  font-size: 19px;
  font-weight: 400;
  -webkit-text-stroke: 0.2px currentColor;
  margin-bottom: 12px;
}

.process-description p {
  font-size: 19px;
  line-height: 1.65;
  color: var(--gray-secondary);
}

.process-description[hidden] {
  display: none;
}

/* ==========================================================================
   10. SELECTED CLIENTS
   ========================================================================== */
.clients-section {
  padding-bottom: var(--section-space);
  background-color: transparent;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.client-logo-cell {
  background-color: var(--white);
  border: 1px solid var(--separator-subtle);
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-btn), opacity var(--transition-btn);
}

.client-logo-cell:hover {
  border-color: var(--border-strong);
}

.client-logo-cell img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Client testimonials: a scroll-snap strip moved by arrows, autoplay, mouse
   drag and touch swipe (script.js, initializeTestimonials). */
.testimonials-section {
  padding-bottom: var(--section-space);
}

.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 26px) / 3);
  gap: 26px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 32px;
  scroll-snap-align: start;
}

.testimonial-service {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-secondary);
}

.testimonial-quote {
  flex: 1;
  font-size: 19px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--separator-subtle);
}

.testimonial-name {
  font-size: 18px;
  -webkit-text-stroke: 0.2px currentColor;
}

.testimonial-company {
  font-size: 15px;
  color: var(--gray-secondary);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.testimonial-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-strong);
  background-image: var(--surface-image, none);
  color: var(--text-primary);
  transition: background-color var(--transition-btn), color var(--transition-btn);
}

.testimonial-arrow svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   11. CONTACT US SECTION
   ========================================================================== */
.contact-section {
  padding-bottom: var(--section-space);
  background-color: transparent;
}

.contact-lead-group {
  max-width: var(--reading-width);
  margin: 0 auto 48px auto;
  text-align: center;
}

.contact-main-text {
  font-size: 21px;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.contact-sub-text {
  font-size: 18px;
  line-height: 1.5;
  color: var(--gray-secondary);
}

.contact-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--separator);
  padding-top: 42px;
}

.contact-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  padding: 0 20px;
}

.contact-group:first-child {
  border-right: 1px solid var(--separator-subtle);
}

/* The contact form option sits centered beneath email and WhatsApp. */
.contact-group--form {
  grid-column: 1 / -1;
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--separator-subtle);
}

.contact-label {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-secondary);
  margin-bottom: 10px;
}

.contact-value {
  font-size: 27px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 26px;
  user-select: text;
  -webkit-user-select: text;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-value--email {
  font-size: clamp(15px, 4.2vw, 27px);
}

.contact-group .btn-rect {
  min-width: 265px;
}

/* ==========================================================================
   12. FOOTER & PERSISTENT CONTACT BAR
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--separator);
  padding: 34px 0 38px 0;
  background-color: transparent;
}

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

.footer-legal-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  list-style: none;
}

.footer-legal-label {
  display: inline-flex;
  align-items: center;
  font-size: 17px;
  line-height: 1.4;
  color: var(--gray-secondary);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-btn), border-color var(--transition-btn);
}

/* Policy links: no underline; darker on hover and on the current policy page. */
a.footer-legal-label:hover,
.footer-legal-label[aria-current="page"] {
  color: var(--text-primary);
}

a.footer-legal-label:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 4px;
}

.footer-copy {
  max-width: 480px;
  margin-left: auto;
  font-size: 17px;
  color: var(--gray-secondary);
  text-align: right;
}

.footer-copy > span {
  display: block;
}

.footer-copyright {
  font-weight: 400;
  color: var(--text-primary);
}

.footer-company {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.5;
}

.footer-company-line {
  display: block;
  white-space: nowrap;
}

.persistent-contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 25px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  pointer-events: none;
}

.persistent-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  gap: 15px;
  min-width: 210px;
  min-height: 62px;
  padding: 20px 25px 18px 27px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--white);
  border-radius: 0;
  transition: background-color var(--transition-btn);
}

.persistent-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.persistent-btn--whatsapp {
  background-color: var(--whatsapp);
}

.persistent-btn--whatsapp:hover,
.persistent-btn--whatsapp:focus-visible {
  background-color: var(--whatsapp-hover);
  outline: none;
}

.persistent-btn--linkedin {
  background-color: var(--linkedin);
}

.persistent-btn--linkedin:hover,
.persistent-btn--linkedin:focus-visible {
  background-color: var(--linkedin-hover);
  outline: none;
}

/* Cookie consent: bottom banner, preferences dialog and corner button. */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--separator);
  background-color: var(--bg-surface);
  background-image: var(--band-image, none);
  box-shadow: 0 -8px 24px var(--header-shadow);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.cookie-banner-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.55;
}

.cookie-banner-text a,
.cookie-dialog-text a {
  color: var(--text-primary);
  text-underline-offset: 3px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-shrink: 0;
}

/* Dialog buttons: first on the left, second exactly centered, third on the right. */
.cookie-dialog-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.cookie-dialog-actions .btn-rect:first-child {
  justify-self: start;
}

.cookie-dialog-actions .btn-rect:last-child {
  justify-self: end;
}

.cookie-actions .btn-rect {
  justify-content: center;
}

.cookie-dialog {
  width: min(760px, calc(100% - 2 * var(--outer-gutter)));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 32px;
  overflow-y: auto;
  border: 1px solid var(--separator);
  background-color: var(--bg-surface);
  background-image: var(--surface-image, none);
  color: var(--text-primary);
}

.cookie-dialog::backdrop {
  background: rgba(2, 4, 9, 0.6);
}

.cookie-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cookie-dialog-title {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 0.2px currentColor;
}

.cookie-dialog-text {
  margin-bottom: 22px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--gray-secondary);
}

.cookie-options {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.cookie-option-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cookie-option-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-option-desc {
  font-size: 15px;
  line-height: 1.5;
}

.cookie-option input:disabled + .form-option-box {
  cursor: default;
}

.cookie-settings-button {
  position: fixed;
  left: 25px;
  bottom: 25px;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-surface);
  background-image: var(--surface-image, none);
  color: var(--text-primary);
  transition: background-color var(--transition-btn), color var(--transition-btn);
}

.cookie-settings-button svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   13. INNER PAGES
   ========================================================================== */
/* Page introduction (About Us, Services, Pricing) */
.page-intro {
  padding: 56px 0 66px;
}

.page-lead {
  margin: 0 auto 30px;
  color: var(--text-primary);
  font-size: 25px;
  line-height: 1.5;
  text-align: center;
}

.page-copy {
  font-size: 19px;
  line-height: 1.65;
  text-align: center;
}

.page-copy p + p {
  margin-top: 22px;
}

/* About Us — Our Approach */
.about-approach {
  padding-bottom: var(--section-space);
}

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

.about-principle {
  padding: 30px;
}

.about-principle-number {
  display: block;
}

/* Question lists: native disclosures need no additional JavaScript. */
.project-planning-section {
  padding-bottom: var(--section-space);
}

.project-questions {
  display: grid;
  gap: 18px;
}

.project-question summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  list-style: none;
  font-size: 21px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color var(--transition-panel), color var(--transition-panel);
}

.project-question summary::-webkit-details-marker {
  display: none;
}

.project-question summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 26px;
  line-height: 1;
}

.project-question[open] summary::after {
  content: "−";
}

.project-question summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -5px;
}

.project-answer {
  border-top: 1px solid var(--separator-subtle);
  padding: 24px 28px;
  font-size: 19px;
  line-height: 1.65;
}

/* Detailed pricing page; the homepage keeps its compact comparison rows. */
.pricing-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 26px;
  list-style: none;
  font-size: 17px;
  color: var(--gray-secondary);
}

.pricing-service-navigation {
  margin-top: 38px;
}

/* Full service names stay on one line: two columns, one at ≤820px. */
.pricing-service-navigation ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.pricing-service-navigation li {
  display: flex;
}

.pricing-service-navigation a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 56px;
  padding: 12px 10px;
  border: 1px solid var(--separator-subtle);
  background-image: var(--band-image, none);
  color: var(--text-primary);
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.04em;
  transition: background-color var(--transition-panel), color var(--transition-panel);
}

/* Capabilities page: tag legend, three jump tiles and three cards per row,
   cards without an action button, and a Back to Top link after each group.
   .capabilities-link centers the "See all capabilities" button on Home, Services and under Other Services. */
.capabilities-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

/* Flex instead of grid so an incomplete last row of jump tiles is centered. */
.capabilities-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.capabilities-navigation li {
  flex: 0 0 calc((100% - 24px) / 3);
}

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

.capabilities-grid .service-desc {
  margin-bottom: 0;
}

.capability-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
}

.capability-head .service-icon {
  margin-bottom: 0;
}

.capability-tag {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid currentColor;
  color: var(--gray-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--transition-panel);
}

.capabilities-top {
  margin-top: 26px;
  text-align: center;
}

.capabilities-top a {
  color: var(--gray-secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color var(--transition-btn);
}

.capabilities-top a:hover {
  color: var(--text-primary);
}

.capabilities-link {
  display: flex;
  justify-content: center;
  margin-top: var(--marquee-space-below);
}

.pricing-details-section,
.pricing-agreement-section {
  padding-bottom: var(--section-space);
}

.pricing-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.pricing-detail {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  padding: 36px;
}

/* An inverted pricing or testimonial card re-points its own color tokens for every child. */
.pricing-detail:hover,
.pricing-detail:focus-within,
.pricing-agreement-panel:hover,
.testimonial-card:hover {
  --text-primary: var(--invert-text);
  --gray-secondary: var(--invert-muted);
  --separator-subtle: var(--invert-separator);
}

.pricing-detail .service-title {
  min-height: 2.6em;
  margin-bottom: 14px;
}

.pricing-detail-fit {
  min-height: 4.5em;
  font-size: 18px;
  line-height: 1.5;
  color: var(--gray-secondary);
}

.pricing-detail-amount {
  display: grid;
  gap: 7px;
  margin-top: 24px;
}

.pricing-detail-number {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.pricing-detail-currency {
  font-size: 17px;
  color: var(--gray-secondary);
}

.pricing-detail-caption {
  font-size: 15px;
  color: var(--gray-secondary);
}

.pricing-detail-block {
  padding-top: 22px;
  border-top: 1px solid var(--separator-subtle);
  font-size: 18px;
  line-height: 1.55;
}

.pricing-detail-label {
  margin-bottom: 13px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.5;
}

.pricing-detail-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.pricing-detail-note {
  font-size: 16px;
  line-height: 1.55;
  color: var(--gray-secondary);
}

.pricing-detail-action {
  margin-top: auto;
}

.pricing-detail:hover .pricing-detail-action,
.pricing-detail:focus-within .pricing-detail-action {
  background-color: var(--bg-surface);
  background-image: var(--on-invert-action-image);
  border-color: var(--bg-surface);
  color: var(--invert-bg);
}

.pricing-agreement-panel {
  padding: 32px;
  font-size: 18px;
  line-height: 1.6;
}

.pricing-agreement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 30px;
  margin: 20px 0 24px;
  list-style: none;
}

/* Legal pages: left-aligned reading text under the shared page intro. */
.legal-section {
  padding-bottom: var(--section-space);
}

.legal-content {
  font-size: 18px;
  line-height: 1.65;
}

.legal-content h2 {
  margin: 44px 0 14px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.2px currentColor;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p + p,
.legal-content p + ul,
.legal-content ul + p {
  margin-top: 14px;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

/* Items can start with bold text, so they flow as one line of text with the
   dash placed beside them instead of as flex columns. */
.legal-content .service-scope-item {
  display: block;
  position: relative;
  padding-left: 27px;
  font-size: 18px;
}

.legal-content .service-scope-item::before {
  position: absolute;
  left: 0;
}

.legal-content a,
.project-answer a {
  color: var(--text-primary);
  text-underline-offset: 3px;
}

.legal-actions {
  margin-top: 18px;
}

.legal-address {
  padding: 22px 26px;
  border-left: 2px solid var(--separator);
}

/* About Us: studio facts run as a services marquee. */
.stats-band {
  margin-bottom: var(--section-space);
}

/* Service pages: process steps and the other services reuse the services grid. */
.service-process-section,
.related-services-section,
.capabilities-section {
  padding-bottom: var(--section-space);
}

.about-principle p + p,
.about-principle p + .pricing-detail-list,
.about-principle .pricing-detail-list + p {
  margin-top: 16px;
}

/* Contact Us page: service-style contact cards and the project inquiry form */
.contact-details-section,
.contact-form-section {
  padding-bottom: var(--section-space);
}

/* WhatsApp and LinkedIn icons are filled shapes; outline icons set fill="none". */
.contact-cards .service-icon svg {
  fill: currentColor;
}

.contact-card-value {
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 26px;
}

.form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-field--full,
.form-fieldset,
.form-actions {
  grid-column: 1 / -1;
}

.form-fieldset {
  min-width: 0;
  border: 0;
}

.form-control {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--separator);
  border-radius: 0;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 18px;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition-btn);
}

.form-control::placeholder {
  color: var(--gray-secondary);
  opacity: 1;
}

.form-control:hover {
  border-color: var(--border-strong);
}

/* The active field thickens its own border with the inverted-card colors
   (navy gradient in light mode); padding drops 1px so the text stays still. */
.form-control:focus {
  padding: 13px 15px;
  border-width: 2px;
  border-color: var(--invert-bg);
  border-image: var(--invert-image) 1;
  outline: none;
}

textarea.form-control {
  min-height: 200px;
  resize: vertical;
}

/* Native select with a drawn chevron that follows the theme color. */
.form-select {
  position: relative;
}

.form-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--text-primary);
  border-bottom: 1.6px solid var(--text-primary);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form-select .form-control {
  padding-right: 48px;
  cursor: pointer;
}

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

.form-option {
  position: relative;
  display: flex;
  cursor: pointer;
}

.form-option--wide {
  grid-column: 1 / -1;
}

.form-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-option-box {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-height: 56px;
  padding: 14px 18px;
  font-size: 17px;
  line-height: 1.35;
}

/* Square marker: outlined when free; when selected, a filled square with the
   check mark cut out so the card color shows through it. */
.form-option-box::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
}

.form-option input:checked + .form-option-box::before {
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cmask id='m'%3E%3Crect width='18' height='18' fill='white'/%3E%3Cpath d='M4.2 9.3L7.6 12.6L13.8 5.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'/%3E%3C/mask%3E%3Crect width='18' height='18' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cmask id='m'%3E%3Crect width='18' height='18' fill='white'/%3E%3Cpath d='M4.2 9.3L7.6 12.6L13.8 5.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'/%3E%3C/mask%3E%3Crect width='18' height='18' mask='url(%23m)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.form-option input:focus-visible + .form-option-box {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.form-actions .btn-rect {
  min-width: 265px;
}

.form-note {
  flex: 1;
  min-width: 260px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-secondary);
}

.form-status {
  flex-basis: 100%;
  font-size: 17px;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

/* Spam trap field: off screen for people, still in the form for bots. */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Custom mouse cursor (mouse and trackpad only, set up in script.js): a dot and
   a trailing ring whose inside fills over links, buttons and other controls.
   Text fields and open dialogs keep the normal cursor. Its colors follow the
   surface under it, not the theme: navy on light surfaces, light on dark ones
   (script.js sets .cursor-on-dark), so it stays visible over inverted cards,
   bands and buttons in both themes. */
html.has-custom-cursor:not(:has(dialog[open])) *:not(input, textarea, select) {
  cursor: none !important;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483000;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background-color: var(--brand-navy);
  transition: opacity 0.2s, background-color 0.2s;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(7, 27, 54, 0.6);
  transition: opacity 0.2s, transform 0.1s linear, border-color 0.2s;
}

.cursor-ring::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background-color: rgba(18, 61, 115, 0.35);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s, background-color 0.2s;
}

.cursor-ring.is-active,
html.cursor-on-dark .cursor-ring.is-active {
  border-color: transparent;
}

html.cursor-on-dark .cursor-dot {
  background-color: var(--color-light);
}

html.cursor-on-dark .cursor-ring {
  border-color: rgba(238, 241, 246, 0.6);
}

html.cursor-on-dark .cursor-ring::before {
  background-color: rgba(188, 199, 216, 0.4);
}

.cursor-ring.is-active::before {
  opacity: 1;
  transform: scale(1.4);
}

html.cursor-visible .cursor-dot,
html.cursor-visible .cursor-ring {
  opacity: 1;
}

html.cursor-over-field .cursor-dot,
html.cursor-over-field .cursor-ring,
html:has(dialog[open]) .cursor-dot,
html:has(dialog[open]) .cursor-ring {
  opacity: 0;
}

/* ==========================================================================
   14. RESPONSIVE RULES
   ========================================================================== */
@media (max-width: 1440px) {
  :root {
    --outer-gutter: 60px;
  }
}

/* Narrow desktop: the six desktop labels no longer fit beside the theme
   control, so the mobile drawer replaces them (same width as mobileLayout in script.js). */
@media (max-width: 1180px) {
  .desktop-navigation {
    display: none;
  }

  .theme-toolbar {
    display: flex;
    justify-content: flex-end;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  /* Legend (it no longer fits on one line): equal-width tags in one column, their texts aligned in a second. */
  .capabilities-legend {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .capabilities-legend li {
    display: contents;
  }

  .capabilities-legend .capability-tag {
    text-align: center;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --outer-gutter: 42px;
    --header-control-width: min(136px, calc((100vw - 2 * var(--outer-gutter) - 10px) / 2));
  }

  .theme-toggle,
  .menu-toggle,
  .menu-close {
    gap: 8px;
    padding: 10px 8px;
    font-size: 12px;
  }

  .service-panel {
    padding: 36px;
  }

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

  .capabilities-navigation li {
    flex-basis: calc((100% - 12px) / 2);
  }

  .about-principles {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card-value--email {
    font-size: 17px;
  }

  .testimonial-track {
    grid-auto-columns: calc((100% - 26px) / 2);
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-text {
    flex: none;
  }

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

/* Small tablet: two-column grids become one column. */
@media (max-width: 820px) {
  :root {
    --outer-gutter: 35px;
  }

  /* Fewer frames fit: the owner's narrow-layout projects go to the end of each
     group and enter from the left in order (see includes/project-strip.php). */
  .project-frame {
    order: var(--narrow-order, 0);
  }

  .hero-actions {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

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

  .pricing-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pricing-action {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .process-summary-block {
    --process-gap: 14px;
  }

  .process-col {
    padding: 24px 18px;
  }

  .process-col-title {
    font-size: 17px;
  }

  .contact-groups {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-group:first-child {
    border-right: none;
    border-bottom: 1px solid var(--separator-subtle);
    padding-bottom: 32px;
  }

  .contact-group--form {
    margin-top: 0;
    padding-top: 32px;
  }

  .pricing-details-grid {
    grid-template-columns: 1fr;
  }

  .pricing-detail .service-title,
  .pricing-detail-fit {
    min-height: 0;
  }

  .pricing-service-navigation ul {
    grid-template-columns: 1fr;
  }

  .capabilities-navigation li {
    flex-basis: 100%;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Phone */
@media (max-width: 640px) {
  :root {
    --outer-gutter: 23px;
    --header-height: 64px;
    --header-padding-y: 10px;
    --section-space: 52px;
    --marquee-space-above: 44px;
    --marquee-space-below: 38px;
    --band-padding-y: 18px;
    --band-space: 34px;
  }

  body {
    font-size: 18px;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  /* Header & sections */
  .section-heading {
    font-size: 24px;
    letter-spacing: 0.18em;
  }

  .section-intro {
    font-size: 18px;
    margin-bottom: 36px;
  }

  /* Hero */
  .hero-section {
    padding-top: 38px;
  }

  .hero-title {
    font-size: clamp(28px, 10vw, 40px);
    letter-spacing: -1px;
    white-space: normal;
  }

  .hero-brand-line {
    display: block;
  }

  .hero-lead {
    font-size: 18px;
    margin-bottom: 30px;
  }

  /* Every content button shrinks together so card buttons stay on one line. */
  .btn-rect,
  .service-cta {
    gap: 10px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 19px;
  }

  /* Marquees & project strip */
  .service-marquee-group {
    padding: 18px 0;
  }

  .service-marquee-item {
    font-size: 22px;
  }

  .service-marquee-sep {
    margin: 0 28px;
  }

  .project-strip-section {
    padding-bottom: 48px;
  }

  .project-marquee-viewport {
    --project-frame-width: 240px;
  }

  .project-frame {
    margin-right: 18px;
  }

  /* Services */
  .service-panel {
    padding: 28px 25px;
  }

  .service-title {
    font-size: 22px;
  }

  .service-desc {
    font-size: 18px;
  }

  .pricing-service-title {
    font-size: 18px;
  }

  .service-cta {
    width: 100%;
  }

  /* Pricing summary */
  .pricing-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 26px 22px;
  }

  .pricing-action {
    width: 100%;
  }

  /* Process: stacked dark stage headers, each followed by its description. */
  .process-columns {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .process-step {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .process-col {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 104px;
    padding: 24px 22px;
  }

  .process-col,
  .process-col:hover,
  .process-col.is-active {
    background-color: var(--brand-navy);
    background-image: var(--brand-gradient);
    border-color: var(--brand-navy);
    color: var(--white);
  }

  .process-step-number {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 0;
    transform: translateY(-1px);
  }

  .process-col-title {
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 0;
  }

  .process-col-text {
    display: none;
  }

  .process-description {
    padding: 26px 22px;
  }

  .process-description::before {
    left: calc(50% - 10px);
  }

  .process-description-title {
    display: none;
  }

  .process-description p {
    font-size: 18px;
  }

  /* Clients */
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Contact */
  .contact-value {
    font-size: 22px;
  }

  .contact-value--email {
    font-size: clamp(15px, 4.2vw, 22px);
  }

  .contact-group .btn-rect {
    width: 100%;
    min-width: 0;
  }

  /* Footer & contact bar */
  .footer-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    text-align: center;
  }

  .footer-legal-list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
  }

  .footer-legal-label {
    min-height: 44px;
    white-space: nowrap;
    text-align: center;
  }

  .footer-copy {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .footer-company-line {
    display: inline;
    white-space: normal;
  }

  .persistent-contact-bar {
    bottom: 0;
    gap: 0;
    background-color: var(--brand-black);
    background-image: var(--brand-gradient);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .persistent-btn {
    width: 50%;
    min-width: 0;
    min-height: 64px;
    padding: 20px 10px 18px;
    gap: 12px;
    font-size: 18px;
  }

  /* Inner pages */
  .page-intro {
    padding: 38px 0 48px;
  }

  .page-lead {
    font-size: 21px;
    margin-bottom: 24px;
  }

  .page-copy {
    font-size: 18px;
  }

  .about-principle {
    padding: 28px 25px;
  }

  .project-question summary {
    padding: 20px;
    gap: 18px;
    font-size: 19px;
  }

  .project-answer {
    padding: 20px;
    font-size: 18px;
  }

  .pricing-facts {
    flex-direction: column;
    gap: 7px;
    text-align: center;
  }

  .pricing-service-navigation a {
    font-size: 14px;
    letter-spacing: 0.02em;
  }

  .pricing-detail {
    padding: 26px 24px;
    gap: 24px;
  }

  .pricing-detail-number {
    font-size: 42px;
  }

  .pricing-detail-action {
    width: 100%;
  }

  .pricing-agreement-panel {
    padding: 25px;
  }

  .pricing-agreement-list {
    grid-template-columns: 1fr;
  }

  .contact-card-value--email {
    font-size: clamp(15px, 4.4vw, 19px);
  }

  .form-options {
    grid-template-columns: 1fr;
  }

  .form-actions .btn-rect {
    width: 100%;
    min-width: 0;
  }

  .form-note {
    min-width: 0;
  }

  .testimonial-track {
    grid-auto-columns: 100%;
  }

  .testimonial-card {
    padding: 28px 25px;
  }

  .testimonial-quote {
    font-size: 18px;
  }

  .testimonial-controls {
    display: none;
  }

  .cookie-banner {
    padding-top: 18px;
  }

  .cookie-banner-text {
    font-size: 15px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-dialog-actions {
    grid-template-columns: 1fr;
  }

  .cookie-actions .btn-rect {
    width: 100%;
  }

  .cookie-dialog {
    padding: 24px 20px;
  }

  .cookie-dialog-title {
    font-size: 18px;
  }

  /* Sits above the full-width WhatsApp/LinkedIn bar on phones. */
  .cookie-settings-button {
    left: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
  }
}

/* ==========================================================================
   15. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .service-marquee-track,
  .project-marquee-track {
    animation: none !important;
    transform: none !important;
  }

  .marquee-duplicate {
    display: none !important;
  }

  .marquee-viewport,
  .project-marquee-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .service-marquee-group,
  .project-marquee-group {
    padding-left: var(--outer-gutter);
    padding-right: var(--outer-gutter);
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
