/* ==========================================================================
   AMICO OUTLINE — Hyper-Classic Modern Architecture Site
   ========================================================================== */

:root {
  /* Light Mode (Default) */
  --bg: #fafaf8;
  --bg-alt: #f5f0eb;
  --text: #2a2825;
  --text-muted: #8a8580;
  --text-faint: #c8c2b8;
  --border: rgba(42, 40, 37, 0.08);
  --border-med: rgba(42, 40, 37, 0.15);
  --black: #0a0a0a;
  --white: #fafaf8;
  --cream: #f5f0eb;
  --warm-gray: #c8c2b8;
  --mid-gray: #8a8580;
  --dark-gray: #2a2825;
  --accent: #b8a088;
  --accent-dark: #9a8068;
  --gold: #c9a96e;
  --card-bg: #fafaf8;
  --nav-scrolled-bg: rgba(250, 250, 248, 0.92);
  --nav-scrolled-border: rgba(42, 40, 37, 0.06);
  --overlay-light: rgba(10, 10, 10, 0.75);

  /* Type */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 12vw, 160px);
  --container-max: 1440px;
  --container-pad: clamp(20px, 4vw, 80px);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   Dark Mode
   ========================================================================== */

[data-theme="dark"] {
  --bg: #111110;
  --bg-alt: #1a1918;
  --text: #e8e4df;
  --text-muted: #9a958f;
  --text-faint: #5a5550;
  --border: rgba(255, 255, 255, 0.06);
  --border-med: rgba(255, 255, 255, 0.12);
  --black: #0a0a0a;
  --white: #e8e4df;
  --cream: #1a1918;
  --warm-gray: #5a5550;
  --mid-gray: #9a958f;
  --dark-gray: #e8e4df;
  --accent: #c9a96e;
  --accent-dark: #d4b87d;
  --card-bg: #1a1918;
  --nav-scrolled-bg: rgba(17, 17, 16, 0.92);
  --nav-scrolled-border: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] .nav.scrolled {
  background: var(--nav-scrolled-bg);
  border-bottom-color: var(--nav-scrolled-border);
}

[data-theme="dark"] .nav.scrolled .nav-link {
  color: var(--text);
}

[data-theme="dark"] .nav.scrolled .nav-cta {
  background: var(--accent);
  color: var(--black);
}

[data-theme="dark"] .nav.scrolled .nav-toggle span {
  background: var(--text);
}

[data-theme="dark"] .nav.scrolled .nav-logo .logo-light {
  display: block;
}

[data-theme="dark"] .nav.scrolled .nav-logo .logo-dark {
  display: none;
}

[data-theme="dark"] .section-title {
  color: var(--text);
}

[data-theme="dark"] .section-title em {
  color: var(--accent-dark);
}

[data-theme="dark"] .about-text {
  color: var(--text-muted);
}

[data-theme="dark"] .highlight-num {
  color: var(--text);
}

[data-theme="dark"] .about-highlights {
  border-top-color: var(--border);
}

[data-theme="dark"] .about-stats-card {
  background: var(--accent);
}

[data-theme="dark"] .about-stats-card .stats-number {
  color: var(--black);
}

[data-theme="dark"] .about-stats-card .stats-label {
  color: rgba(10, 10, 10, 0.6);
}

[data-theme="dark"] .services {
  background: var(--bg-alt);
}

[data-theme="dark"] .service-content {
  background: var(--bg-alt);
}

[data-theme="dark"] .service-title {
  color: var(--text);
}

[data-theme="dark"] .service-content p {
  color: var(--text-muted);
}

[data-theme="dark"] .blog {
  background: var(--bg-alt);
}

[data-theme="dark"] .blog-card {
  background: var(--bg);
}

[data-theme="dark"] .blog-title {
  color: var(--text);
}

[data-theme="dark"] .blog-title a:hover {
  color: var(--accent);
}

[data-theme="dark"] .contact-form {
  background: var(--bg-alt);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  color: var(--text);
  border-bottom-color: var(--border-med);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: var(--text-faint);
}

[data-theme="dark"] .contact-item a,
[data-theme="dark"] .contact-item p {
  color: var(--text);
}

[data-theme="dark"] .contact-socials a::after {
  background: var(--text);
}

[data-theme="dark"] .btn-primary {
  background: var(--accent);
  color: var(--black);
}

[data-theme="dark"] .btn-primary::before {
  background: var(--text);
}

[data-theme="dark"] .btn-secondary {
  color: var(--text);
  border-color: var(--text-faint);
}

[data-theme="dark"] .btn-secondary::before {
  background: var(--accent);
}

[data-theme="dark"] .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--black);
}

[data-theme="dark"] .cursor {
  background: var(--text);
}

[data-theme="dark"] .cursor-follower {
  border-color: rgba(232, 228, 223, 0.25);
}

[data-theme="dark"] .partners-slide img {
  filter: grayscale(1) invert(1);
  opacity: 0.25;
}

[data-theme="dark"] .partners-slide img:hover {
  opacity: 0.6;
  filter: grayscale(0) invert(0);
}

/* Dark mode - page header */
[data-theme="dark"] .page-header {
  background: var(--bg-alt);
}

[data-theme="dark"] .page-header .breadcrumb a {
  color: var(--text-muted);
}

[data-theme="dark"] .page-header .breadcrumb span {
  color: var(--accent);
}

/* Dark mode - work grid */
[data-theme="dark"] .work-filters button {
  color: var(--text-muted);
}

[data-theme="dark"] .work-filters button.active,
[data-theme="dark"] .work-filters button:hover {
  color: var(--accent);
}

/* Dark mode - project detail */
[data-theme="dark"] .pd-sidebar {
  background: var(--bg-alt);
}

[data-theme="dark"] .pd-sidebar .pd-label {
  color: var(--accent);
}

[data-theme="dark"] .pd-sidebar .pd-value {
  color: var(--text);
}

[data-theme="dark"] .pd-content h2,
[data-theme="dark"] .pd-content h3 {
  color: var(--text);
}

[data-theme="dark"] .pd-content p {
  color: var(--text-muted);
}

[data-theme="dark"] .pd-nav a {
  color: var(--text-muted);
  border-color: var(--border);
}

[data-theme="dark"] .pd-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Dark mode - blog detail */
[data-theme="dark"] .bd-content h2,
[data-theme="dark"] .bd-content h3 {
  color: var(--text);
}

[data-theme="dark"] .bd-content p {
  color: var(--text-muted);
}

/* Dark mode - about page */
[data-theme="dark"] .mission-card {
  background: var(--bg-alt);
  border-color: var(--border);
}

[data-theme="dark"] .mission-card h3 {
  color: var(--text);
}

[data-theme="dark"] .mission-card p {
  color: var(--text-muted);
}

/* Dark mode - theme toggle */
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ==========================================================================
   Theme Toggle Button
   ========================================================================== */

.theme-toggle {
  position: fixed;
  bottom: 104px;
  right: 34px;
  z-index: 9001;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark-gray);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  transition: all 0.4s var(--ease);
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun {
  display: none;
}

.theme-toggle .moon {
  display: block;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: none;
}

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

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

.section {
  padding: var(--section-pad) 0;
}

.section-lg {
  padding: clamp(120px, 16vw, 240px) 0;
}

.section-sm {
  padding: clamp(40px, 6vw, 80px) 0;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--dark-gray);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(42, 40, 37, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.3s var(--ease);
}

body.cursor-hover .cursor {
  width: 60px;
  height: 60px;
  background: var(--accent);
  mix-blend-mode: normal;
  opacity: 0.15;
}

body.cursor-hover .cursor-follower {
  width: 80px;
  height: 80px;
  border-color: var(--accent);
}

@media (pointer: coarse) {
  .cursor, .cursor-follower { display: none; }
  body, a, button, input, textarea { cursor: auto; }
}

/* ==========================================================================
   Preloader
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  position: relative;
}

.preloader-line {
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto 30px;
  position: relative;
  overflow: hidden;
}

.preloader-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: preloaderLine 1.5s var(--ease-in-out) infinite;
}

@keyframes preloaderLine {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

.preloader-text {
  font-family: var(--font-serif);
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.4em;
  color: #fafaf8;
  opacity: 0.6;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.5s var(--ease);
}

.nav.scrolled {
  padding: 14px 0;
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-scrolled-border);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 36px;
  width: auto;
  transition: opacity 0.3s;
}

.nav-logo .logo-dark { display: none; }

.nav.scrolled .nav-logo .logo-light { display: none; }
.nav.scrolled .nav-logo .logo-dark { display: block; }
.nav.at-top .nav-logo .logo-light { display: block; }
.nav.at-top .nav-logo .logo-dark { display: none; }

/* Inner pages: nav starts dark text */
.nav.nav-dark .nav-link { color: var(--text); }
.nav.nav-dark .nav-toggle span { background: var(--text); }
.nav.nav-dark .nav-cta { background: var(--black); color: #fafaf8; }
.nav.nav-dark .nav-logo .logo-light { display: none; }
.nav.nav-dark .nav-logo .logo-dark { display: block; }
[data-theme="dark"] .nav.nav-dark .nav-logo .logo-light { display: block; }
[data-theme="dark"] .nav.nav-dark .nav-logo .logo-dark { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fafaf8;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Nav Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown .nav-link svg {
  transition: transform 0.3s var(--ease);
  opacity: 0.5;
}

.nav-dropdown:hover .nav-link svg {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 140px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 24px 0 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -10px;
  right: -10px;
  height: 24px;
}

.nav-dropdown-menu a {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 8px 20px;
  transition: all 0.2s;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--accent-dark);
  background: var(--bg-alt);
}

[data-theme="dark"] .nav-dropdown-menu {
  background: #1a1918;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

[data-theme="dark"] .nav-dropdown-menu a:hover,
[data-theme="dark"] .nav-dropdown-menu a.active {
  background: #222;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: #fafaf8;
  padding: 12px 28px;
  border-radius: 100px;
  transition: all 0.4s var(--ease);
}

.nav.scrolled .nav-cta {
  background: var(--black);
  color: #fafaf8;
}

[data-theme="dark"] .nav.scrolled .nav-cta {
  background: var(--accent);
  color: var(--black);
}

.nav-cta:hover { transform: scale(1.05); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #fafaf8;
  transition: all 0.4s var(--ease);
  transform-origin: center;
}

.nav.scrolled .nav-toggle span { background: var(--text); }

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease);
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu-inner { text-align: center; }

.mobile-link {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 400;
  color: #fafaf8;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s var(--ease);
}

.mobile-menu.open .mobile-link { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.open .mobile-link:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu.open .mobile-link:nth-child(8) { transition-delay: 0.45s; }

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

.mobile-menu-footer {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-footer a {
  font-size: 14px;
  color: #8a8580;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

.mobile-menu-footer a:hover { color: #fafaf8; }

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slider { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.hero-slide.active { opacity: 1; }

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s linear;
  transform: scale(1);
}

.hero-slide.active::before { transform: scale(1.08); }

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  position: relative;
  padding-left: 48px;
}

.hero-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  color: #fafaf8;
  margin-bottom: 24px;
  max-width: 800px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-controls {
  position: absolute;
  bottom: 48px;
  right: var(--container-pad);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fafaf8;
  transition: all 0.4s var(--ease);
}

.hero-arrow:hover {
  background: #fafaf8;
  color: var(--black);
  border-color: #fafaf8;
}

.hero-counter {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #fafaf8;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-sep { opacity: 0.3; }
.hero-total { opacity: 0.4; }

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: var(--container-pad);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fafaf8;
}

.hero-scroll span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 0;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn span, .btn { position: relative; z-index: 1; }

.btn-primary { background: var(--bg); color: var(--black); }
.btn-primary::before { background: var(--accent); }
.btn-primary:hover { color: #fafaf8; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.btn-secondary::before { background: var(--text); }
.btn-secondary:hover { color: var(--bg); border-color: var(--text); }

.btn-full { width: 100%; justify-content: center; }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  padding: 28px 0;
  background: var(--black);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #fafaf8;
  opacity: 0.7;
}

.marquee-dot {
  width: 6px !important;
  height: 6px;
  border-radius: 50%;
  background: var(--accent) !important;
  opacity: 1 !important;
  flex-shrink: 0;
  display: inline-block;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
  position: relative;
  padding-left: 48px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.section-tag.light { color: var(--accent); }
.section-tag.light::before { background: var(--accent); }

.centered-tag { display: block; text-align: center; padding-left: 0; }
.centered-tag::before { display: none; }

.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

.section-title em {
  font-style: italic;
  color: var(--accent-dark);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-visual { position: relative; }

.about-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.about-img-wrap:hover img { transform: scale(1.05); }

.about-stats-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--black);
  color: #fafaf8;
  padding: 36px 40px;
  z-index: 2;
  transition: background 0.5s var(--ease);
}

.stats-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.stats-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
}

.about-content { padding-right: clamp(0px, 4vw, 60px); }

.about-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 40px 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.highlight-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}

.highlight-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services { background: var(--bg-alt); transition: background 0.5s var(--ease); }

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

.service-card {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.service-card:last-child { border-right: none; }

.service-img { aspect-ratio: 3/4; overflow: hidden; }

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  filter: grayscale(0.3);
}

.service-card:hover .service-img img {
  transform: scale(1.08);
  filter: grayscale(0);
}

.service-content { padding: 32px 28px; }

.service-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.3;
}

.service-content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ==========================================================================
   Vision Section
   ========================================================================== */

.vision { position: relative; overflow: hidden; }

.vision-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.vision-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
}

.vision-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.vision-quote {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.4;
  color: #fafaf8;
  font-style: normal;
}

.vision-quote em { color: var(--accent); font-style: italic; }

/* ==========================================================================
   Projects Section
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--black);
}

.project-card-lg { grid-column: span 2; }

.project-img { aspect-ratio: 16/10; overflow: hidden; }
.project-card-lg .project-img { aspect-ratio: 21/10; }

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s var(--ease);
  opacity: 0.85;
}

.project-card:hover .project-img img {
  transform: scale(1.06);
  opacity: 0.5;
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px;
  background: linear-gradient(0deg, rgba(10,10,10,0.8) 0%, transparent 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s var(--ease);
}

.project-card:hover .project-info {
  transform: translateY(0);
  opacity: 1;
}

.project-meta { display: flex; gap: 16px; margin-bottom: 12px; }

.project-meta span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 400;
  color: #fafaf8;
  margin-bottom: 4px;
}

.project-location {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Partners
   ========================================================================== */

.partners-track {
  display: flex;
  animation: partnersScroll 30s linear infinite;
  margin-top: 32px;
}

.partners-slide {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-shrink: 0;
  padding: 0 30px;
}

.partners-slide img {
  height: 40px;
  width: auto;
  opacity: 0.35;
  filter: grayscale(1);
  transition: all 0.4s var(--ease);
}

.partners-slide img:hover {
  opacity: 0.8;
  filter: grayscale(0);
}

@keyframes partnersScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Blog Section
   ========================================================================== */

.blog { background: var(--bg-alt); transition: background 0.5s var(--ease); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card { background: var(--bg); transition: background 0.5s var(--ease); }

.blog-img { display: block; aspect-ratio: 16/10; overflow: hidden; }

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.blog-card:hover .blog-img img { transform: scale(1.06); }

.blog-content { padding: 28px 32px 32px; }

.blog-date {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
  display: block;
}

.blog-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.blog-title a { transition: color 0.3s; }
.blog-title a:hover { color: var(--accent-dark); }

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
}

.contact-text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 40px;
}

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

.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.contact-item a,
.contact-item p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  transition: color 0.3s;
}

.contact-item a:hover { color: var(--accent-dark); }

.contact-socials { display: flex; gap: 24px; }

.contact-socials a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.contact-socials a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.contact-socials a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-form {
  padding: clamp(32px, 4vw, 56px);
  background: var(--bg-alt);
  transition: background 0.5s var(--ease);
}

.form-group { margin-bottom: 20px; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 0;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  border-bottom: 1px solid var(--border-med);
  transition: border-color 0.3s, color 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }

.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--accent-dark); }

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

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--black);
  color: #fafaf8;
  padding: clamp(60px, 8vw, 100px) 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(32px, 4vw, 60px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo { height: 32px; width: auto; margin-bottom: 20px; }

.footer-brand p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.4);
  max-width: 320px;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  padding: 6px 0;
  transition: color 0.3s;
}

.footer-links a:hover { color: #fafaf8; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.footer-bottom span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-socials { display: flex; gap: 20px; }

.footer-socials a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.footer-socials a:hover { color: var(--accent); }

/* ==========================================================================
   Animations
   ========================================================================== */

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-animate="reveal-left"] { transform: translateX(-40px); }
[data-animate].in-view { opacity: 1; transform: translate(0); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Page Header (Inner Pages)
   ========================================================================== */

.page-header {
  padding: clamp(140px, 18vw, 200px) 0 clamp(60px, 8vw, 100px);
  background: var(--bg-alt);
  transition: background 0.5s var(--ease);
}

.page-header .section-title {
  margin-bottom: 16px;
}

.breadcrumb {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb .sep { color: var(--text-faint); }

.breadcrumb span:last-child { color: var(--accent-dark); }

/* ==========================================================================
   Work / Portfolio Grid
   ========================================================================== */

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.work-filters button {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 20px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
  background: transparent;
}

.work-filters button.active,
.work-filters button:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--black);
}

.work-card .project-img { aspect-ratio: 4/3; }

.work-card .project-info {
  padding: 28px;
}

.work-card .project-title {
  font-size: 22px;
}

/* ==========================================================================
   Project Detail Page
   ========================================================================== */

.pd-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.pd-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,0.6) 0%, transparent 40%);
}

.pd-hero-content {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  padding: 0 var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}

.pd-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  color: #fafaf8;
}

.pd-body {
  padding: var(--section-pad) 0;
}

.pd-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(40px, 6vw, 80px);
}

.pd-sidebar {
  background: var(--bg-alt);
  padding: 40px;
  height: fit-content;
  position: sticky;
  top: 120px;
  transition: background 0.5s var(--ease);
}

.pd-sidebar-item {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.pd-sidebar-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.pd-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
  display: block;
}

.pd-value {
  font-size: 18px;
  font-family: var(--font-serif);
  color: var(--text);
}

.pd-content h2, .pd-content h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
  margin: 40px 0 16px;
}

.pd-content h2 { font-size: 28px; }
.pd-content h3 { font-size: 22px; }

.pd-content p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pd-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.pd-gallery img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.pd-gallery img:hover { transform: scale(1.03); }

.pd-gallery img:first-child {
  grid-column: span 2;
  aspect-ratio: 21/9;
}

.pd-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 60px;
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

.pd-nav a {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 28px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}

.pd-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   Blog Detail Page
   ========================================================================== */

.bd-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  overflow: hidden;
}

.bd-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.2) 60%);
}

.bd-hero-content {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  padding: 0 var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
}

.bd-hero-content .blog-date {
  color: var(--accent);
  margin-bottom: 16px;
}

.bd-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: #fafaf8;
  max-width: 700px;
}

.bd-body {
  padding: var(--section-pad) 0;
}

.bd-content {
  max-width: 760px;
  margin: 0 auto;
}

.bd-content h2, .bd-content h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
  margin: 36px 0 16px;
}

.bd-content h2 { font-size: 28px; }
.bd-content h3 { font-size: 22px; }

.bd-content p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.bd-content p:first-of-type {
  font-size: 18px;
  color: var(--text);
}

.bd-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  transition: color 0.3s;
}

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

/* ==========================================================================
   About Page Extras
   ========================================================================== */

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: clamp(60px, 8vw, 100px);
}

.mission-card {
  padding: clamp(32px, 4vw, 56px);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}

.mission-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
}

.mission-card p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-muted);
}

/* Contact Page Map */
.contact-map {
  width: 100%;
  height: 400px;
  filter: grayscale(0.8);
  transition: filter 0.5s var(--ease);
  border: none;
}

.contact-map:hover { filter: grayscale(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { border-right: none; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-stats-card { bottom: 20px; right: 20px; padding: 24px 28px; }
  .stats-number { font-size: 36px; }

  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card-lg { grid-column: span 2; }

  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }

  .pd-grid { grid-template-columns: 1fr; }
  .pd-sidebar { position: static; }
  .mission-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-img { aspect-ratio: 16/9; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card-lg { grid-column: span 1; }
  .project-info { transform: translateY(0); opacity: 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .hero-controls { bottom: 24px; right: 20px; }
  .hero-scroll { display: none; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .vision-bg { background-attachment: scroll; }
  .work-grid { grid-template-columns: 1fr; }
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-gallery img:first-child { grid-column: span 1; }
  .theme-toggle { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .about-highlights { grid-template-columns: 1fr; gap: 16px; }
  .highlight { display: flex; align-items: baseline; gap: 12px; }
}

/* ==========================================================================
   BRAND ACCENT — #f75622
   Scoped to button borders and <em> tags only
   ========================================================================== */

:root {
  --brand: #f75622;
  --brand-hover: #d6431a;
}

[data-theme="dark"] {
  --brand: #f75622;
  --brand-hover: #ff7a4a;
}

/* ── <em> tags across the site (headings, content, hero, sections) ── */
h1 em, h2 em, h3 em, h4 em, h5 em, h6 em,
p em,
.v2-title-outline,
.v2-hero-title em,
.v2-intro-text em,
.v2-cta h2 em,
.sd-title em,
.sd-section-head h2 em,
.sd-cta h2 em,
.si-title em,
.si-section-head h2 em,
.si-cta h2 em,
.section-title em,
.page-title em,
.proj-title em,
.selector-title em,
.work-cta h2 em,
.cred-header h2 em,
.proc-header h2 em,
.v2-sectors-head h2 em {
  color: var(--brand) !important;
}

/* Outline title in v2 hero — stroke too */
.v2-title-outline {
  -webkit-text-stroke: 1.5px var(--brand) !important;
}

/* ── Button borders ── */
.v2-hero-btn,
.v2-hero-btn-light,
.btn-secondary,
.nav-cta,
.change-category-btn,
.category-btn {
  border-color: var(--brand) !important;
}

.v2-hero-btn:hover,
.v2-hero-btn-light:hover,
.btn-secondary:hover,
.change-category-btn:hover {
  border-color: var(--brand-hover) !important;
  background: var(--brand) !important;
  color: #fafaf8 !important;
}

/* Service card link underline uses border too */
.si-card-link {
  border-color: var(--brand) !important;
}

.si-card:hover .si-card-link {
  border-color: var(--brand-hover) !important;
  color: var(--brand) !important;
}

/* Deliverable cards on service detail */
.sd-deliv-item:hover {
  border-color: var(--brand) !important;
}

/* Service index card hover border */
.si-card:hover {
  border-color: var(--brand) !important;
}

/* Work card hover border */
.work-card:hover {
  border-color: var(--brand) !important;
}

/* Credentials / Why Choose Us cards hover */
.cred-v2-card:hover,
.cred-card:hover {
  border-color: var(--brand) !important;
}

/* Inner credential badges (e.g. CERTIFIED, ZERO INCIDENTS, 15+ AWARDS, FULL STACK) */
.cred-badge {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
}

.cred-badge svg {
  stroke: var(--brand) !important;
}

/* Credential icon strokes */
.cred-v2-card .cred-icon svg,
.cred-card .cred-icon svg {
  stroke: var(--brand) !important;
}

/* ── Section tags & eyebrow labels (all uses of --accent) ── */
.section-tag,
.section-tag.light,
.h-partners-label,
.v2-hero-tag,
.v2-pj-info span:first-child,
.v2-cta-label,
.work-cta-label,
.sd-cta-label,
.si-cta-label,
.sd-eyebrow,
.si-eyebrow,
.selector-label,
.contact-label,
.contact-item h4,
.about-label,
.services-label,
.work-label,
.journal-label,
.blog-label,
.breadcrumb span:last-child,
.pd-label,
.pd-sidebar .pd-label,
.h-svc-num,
.h-proj-meta span,
.h-journal-meta,
.sd-step-num,
.sd-deliv-item .accent,
.si-card-num,
.si-stat-label,
.si-process-num,
.si-why-num,
.cap-num,
.proc-num,
.v2-svc-num,
.cred-badge,
.section-tag::before {
  color: var(--brand) !important;
}

.section-tag::before,
.section-tag.light::before {
  background: var(--brand) !important;
}

.v2-tag-line {
  background: var(--brand) !important;
}

/* Scroll dot & section-tag accent dot */
.v2-scroll-dot {
  background: var(--brand) !important;
}

/* ── Primary buttons (Send Message etc.) ── */
.btn-primary,
.nav-cta {
  background: var(--brand) !important;
  color: #fafaf8 !important;
  border-color: var(--brand) !important;
}

.btn-primary:hover,
.nav-cta:hover {
  background: var(--brand-hover) !important;
  border-color: var(--brand-hover) !important;
}

/* About hero stats card (uses --accent bg in dark mode) */
[data-theme="dark"] .about-stats-card {
  background: var(--brand) !important;
}

/* Project detail sidebar value labels */
[data-theme="dark"] .pd-sidebar .pd-label,
.pd-sidebar .pd-label {
  color: var(--brand) !important;
}

/* Work filters & nav-link active */
.work-filters button.active {
  color: var(--brand) !important;
  border-color: var(--brand) !important;
}

/* Page header breadcrumb current */
.breadcrumb span,
.breadcrumb span:last-child {
  color: var(--brand) !important;
}

/* Vision quote em on about page */
.vision-quote em {
  color: var(--brand) !important;
}

/* ── Disable custom cursor (use native pointer) ── */
.cursor,
.cursor-follower {
  display: none !important;
}

body,
a,
button,
.work-card,
.service-card,
.project-card,
.blog-card,
.si-card,
.v2-svc-item,
.sd-related-item,
.category-btn,
.gallery-item,
.change-category-btn {
  cursor: auto !important;
}

a, button, .gallery-item, .work-card, .si-card, .category-btn, .change-category-btn, .v2-svc-item, .sd-related-item {
  cursor: pointer !important;
}

/* ── Hover color states (replaces accent-dark hovers with brand) ── */
.v2-svc-item:hover .v2-svc-text h3,
.sd-related-item:hover h3,
.si-card:hover .si-card-body h3,
.work-card:hover .work-card-info h3,
.proj-nav-link:hover,
.h-svc:hover .h-svc-title,
.h-proj:hover .h-proj-title,
.blog-title a:hover,
.contact-item a:hover,
.work-filters button.active,
.work-filters button:hover,
.mobile-link:hover,
.nav-link:hover,
.h-text-link:hover,
.breadcrumb a:hover,
.proj-nav-back:hover,
.sd-hero .breadcrumb a:hover,
.si-hero .breadcrumb a:hover,
.proj-header .breadcrumb a:hover {
  color: var(--brand) !important;
}

.proj-nav-back:hover,
.h-text-link:hover {
  border-color: var(--brand) !important;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--brand) !important;
}

#projectSearch:focus {
  border-color: var(--brand) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   BRANDS — "Trusted by leading brands" : two opposite-moving marquee rows
   Full-colour logos, uniform sizing, seamless loop, pause on hover.
   ══════════════════════════════════════════════════════════════════════ */

.brands-section {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg);
  overflow: hidden;
}

.brands-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.brands-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin: 14px 0 18px;
}

.brands-head h2 em { font-style: italic; color: var(--brand, #f75622); }

.brands-head p {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--text-muted);
}

/* Marquee rows */
.brands-marquees {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
  /* Fade the left/right edges so logos enter & exit gracefully */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.brands-row {
  display: flex;
  overflow: hidden;
}

.brands-marquee {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-right: clamp(20px, 3vw, 48px); /* keep gap consistent across the seam */
  will-change: transform;
}

.brands-row-ltr .brands-marquee { animation: brandsScrollLeft 70s linear infinite; }
.brands-row-rtl .brands-marquee { animation: brandsScrollRight 70s linear infinite; }

/* Pause when the visitor hovers the row */
.brands-row:hover .brands-marquee { animation-play-state: paused; }

@keyframes brandsScrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes brandsScrollRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Each logo cell */
.brand-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(140px, 14vw, 190px);
  height: clamp(72px, 8vw, 104px);
  padding: 0 clamp(12px, 1.6vw, 22px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.brand-item img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-item:hover {
  transform: translateY(-4px);
  border-color: var(--brand, #f75622);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.35);
}

/* Dark theme: give logos a clean light chip so dark-on-transparent
   marks stay legible. */
[data-theme="dark"] .brand-item { background: #f7f5f1; border-color: rgba(0,0,0,0.06); }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .brands-row-ltr .brands-marquee,
  .brands-row-rtl .brands-marquee { animation: none; }
  .brands-marquee { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 560px) {
  .brand-item { width: 130px; height: 70px; }
  .brand-item img { max-height: 42px; }
}
