:root {
  color-scheme: dark;
  --color-primary: #ead8c4;
  --color-primary-dark: #fff8ef;
  --color-accent: #f97316;
  --color-accent-soft: rgba(249, 115, 22, 0.16);
  --color-bg: #08090d;
  --color-bg-warm: #17110d;
  --color-surface: #171923;
  --color-surface-warm: #211915;
  --color-text: #fff7ed;
  --color-muted: #d9c7b3;
  --color-border: rgba(234, 216, 196, 0.16);
  --color-charcoal: #0e1016;
  --color-charcoal-2: #2a211d;
  --shadow-soft: 0 18px 55px rgba(0, 0, 0, 0.38);
  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --space-section: clamp(3.75rem, 8vw, 6.5rem);
  --font-fa: "Vazirmatn", "Estedad", "IRANSansX", "Dana", "Tahoma", sans-serif;
  --font-en: "Inter", "Plus Jakarta Sans", "Arial", sans-serif;
  --font-body: var(--font-fa);
  --type-body: clamp(0.98rem, 0.94rem + 0.18vw, 1.06rem);
  --type-small: 0.875rem;
  --type-label: 0.78rem;
  --type-nav: 0.96rem;
  --type-button: 0.98rem;
  --type-h1: clamp(2.15rem, 8vw, 3.35rem);
  --type-h1-desktop: clamp(3rem, 5.2vw, 4.9rem);
  --type-h2: clamp(1.75rem, 3.9vw, 3.15rem);
  --type-h3: clamp(1.12rem, 1.3vw, 1.3rem);
  --transition-fast: 180ms ease;
  --transition-soft: 320ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-reveal: 620ms cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: 0 0 0 3px rgba(249, 115, 22, 0.18), 0 0 0 7px rgba(249, 115, 22, 0.08);
}

body[data-theme="light"] {
  color-scheme: light;
  --color-primary: #6b3d1f;
  --color-primary-dark: #21140c;
  --color-accent: #c76418;
  --color-accent-soft: rgba(199, 100, 24, 0.13);
  --color-bg: #fffaf3;
  --color-bg-warm: #f7ead8;
  --color-surface: #fffefd;
  --color-surface-warm: #fff4e5;
  --color-text: #24170f;
  --color-muted: #5f5147;
  --color-border: rgba(116, 78, 48, 0.16);
  --color-charcoal: #fff6e9;
  --color-charcoal-2: #f0d8ba;
  --shadow-soft: 0 18px 42px rgba(92, 62, 36, 0.1);
  --shadow-card: 0 14px 32px rgba(92, 62, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  direction: rtl;
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 400;
  color: var(--color-text);
  background:
    radial-gradient(circle at 8% 0%, rgba(249, 115, 22, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(120, 53, 15, 0.18), transparent 32%),
    linear-gradient(180deg, #090a0f 0%, #120d0b 52%, #08090d 100%);
  line-height: 1.85;
  text-align: right;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  overflow-x: hidden;
  transition: background 380ms ease, color 320ms ease;
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at 8% 0%, rgba(249, 166, 74, 0.14), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(194, 113, 43, 0.08), transparent 34%),
    linear-gradient(180deg, #fffdf9 0%, #fff7ec 48%, #fffaf4 100%);
}

.mobile-theme-dock {
  display: none;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.en-text {
  direction: ltr;
  font-family: var(--font-en);
  font-feature-settings: normal;
  letter-spacing: -0.035em;
  text-align: left;
}

.numeric {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-en);
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.045em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-text);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.3rem;
  font-size: var(--type-h1);
  font-weight: 850;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

h2 {
  max-width: 17ch;
  margin-bottom: 1rem;
  font-size: var(--type-h2);
  line-height: 1.28;
}

h3 {
  font-size: var(--type-h3);
  font-weight: 750;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

p {
  max-width: 64ch;
  color: var(--color-muted);
  line-height: 1.95;
}

small {
  font-size: var(--type-small);
  line-height: 1.65;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

:where(.nav-pill, .btn, .action-link, .dock-button) {
  position: relative;
  isolation: isolate;
}

:where(.nav-pill, .btn, .action-link, .dock-button):focus-visible {
  border-color: rgba(249, 115, 22, 0.34);
}

body.is-theme-switching,
body.is-theme-switching :where(
  .site-header,
  .brand-mark,
  .brand-logo,
  .brand-text,
  .site-nav,
  .nav-pill,
  .theme-dock,
  .dock-button,
  .mobile-theme-button,
  .hero,
  .section,
  .section-muted,
  .section-dark,
  .section-heading,
  .eyebrow,
  .lead,
  .card,
  .glass-card,
  .btn,
  .action-link,
  .portfolio-toggle,
  .portfolio-panel,
  .portfolio-item,
  .process-card,
  .process-item,
  .trust-item,
  .contact-location-section,
  .contact-location-card,
  .location-address,
  .location-detail,
  .office-hours,
  .map-preview,
  .site-footer
) {
  transition-property: background-color, color, border-color, box-shadow, fill, stroke, opacity, filter;
  transition-duration: 1500ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-transition-ripple {
  position: fixed;
  inset: 0;
  z-index: 9998;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
  isolation: isolate;
}

.theme-transition-ripple::before {
  content: "";
  position: absolute;
  inset-block-start: var(--theme-ripple-y, 50%);
  inset-inline-start: var(--theme-ripple-x, 50%);
  width: var(--theme-ripple-size, 140vmax);
  height: var(--theme-ripple-size, 140vmax);
  border-radius: 999px;
  background:
    radial-gradient(circle,
      var(--theme-ripple-core) 0%,
      var(--theme-ripple-ring) 34%,
      rgba(249, 115, 22, 0.08) 48%,
      transparent 72%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.04);
  animation: theme-ripple-expand 1450ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.theme-transition-ripple::after {
  content: "";
  position: absolute;
  inset: -18% -28%;
  background: linear-gradient(115deg, transparent 28%, var(--theme-ripple-sheen) 48%, transparent 68%);
  opacity: 0;
  transform: translateX(24%);
  animation: theme-ripple-sheen 1350ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.theme-transition-ripple--to-light {
  --theme-ripple-core: rgba(255, 250, 239, 0.78);
  --theme-ripple-ring: rgba(249, 166, 74, 0.28);
  --theme-ripple-sheen: rgba(255, 255, 255, 0.18);
}

.theme-transition-ripple--to-dark {
  --theme-ripple-core: rgba(8, 9, 13, 0.58);
  --theme-ripple-ring: rgba(249, 115, 22, 0.18);
  --theme-ripple-sheen: rgba(249, 115, 22, 0.11);
}

@keyframes theme-ripple-expand {
  0% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(0.04);
  }

  54% {
    opacity: 0.34;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes theme-ripple-sheen {
  0% {
    opacity: 0;
    transform: translateX(26%);
  }

  26% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translateX(-26%);
  }
}

.js-enhanced [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(6px);
  transition:
    opacity var(--transition-reveal),
    transform var(--transition-reveal),
    filter var(--transition-reveal);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.js-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

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

.site-loader {
  display: none;
}

body.js-enhanced:not(.is-loaded) {
  overflow: hidden;
}

.js-enhanced .site-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: #fff7ed;
  background:
    radial-gradient(circle at 50% 42%, rgba(249, 115, 22, 0.18), transparent 30%),
    radial-gradient(circle at 12% 16%, rgba(234, 216, 196, 0.08), transparent 26%),
    linear-gradient(135deg, #050609 0%, #0d1018 48%, #17110d 100%);
  isolation: isolate;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 460ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 460ms;
}

body[data-theme="light"].js-enhanced .site-loader {
  color: #321c10;
  background:
    radial-gradient(circle at 50% 42%, rgba(197, 107, 29, 0.16), transparent 30%),
    radial-gradient(circle at 12% 16%, rgba(120, 72, 35, 0.1), transparent 26%),
    linear-gradient(135deg, #fffaf3 0%, #fff0dc 48%, #ead0ad 100%);
}

.js-enhanced .site-loader::before,
.js-enhanced .site-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.js-enhanced .site-loader::before {
  background-image:
    linear-gradient(rgba(234, 216, 196, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 216, 196, 0.045) 1px, transparent 1px),
    linear-gradient(45deg, transparent 48%, rgba(249, 115, 22, 0.08) 49%, rgba(249, 115, 22, 0.08) 51%, transparent 52%);
  background-size: 42px 42px, 42px 42px, 170px 170px;
  background-position: center;
  mask-image: radial-gradient(circle at center, #000 0%, #000 42%, transparent 78%);
  opacity: 0;
  animation: loader-grid-in 900ms ease forwards;
}

body[data-theme="light"].js-enhanced .site-loader::before {
  background-image:
    linear-gradient(rgba(120, 72, 35, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 72, 35, 0.075) 1px, transparent 1px),
    linear-gradient(45deg, transparent 48%, rgba(197, 107, 29, 0.12) 49%, rgba(197, 107, 29, 0.12) 51%, transparent 52%);
}

.js-enhanced .site-loader::after {
  background:
    linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.13), transparent),
    radial-gradient(circle at 50% 54%, rgba(255, 247, 237, 0.08), transparent 24%);
  opacity: 0;
  transform: translateX(-18%);
  animation: loader-scan 1500ms cubic-bezier(0.22, 1, 0.36, 1) 160ms forwards;
}

body[data-theme="light"].js-enhanced .site-loader::after {
  background:
    linear-gradient(90deg, transparent, rgba(197, 107, 29, 0.16), transparent),
    radial-gradient(circle at 50% 54%, rgba(120, 72, 35, 0.08), transparent 24%);
}

body.is-loaded .site-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-loaded .loader-blueprint {
  opacity: 0;
  transform: translate3d(0, -8px, 0) scale(0.985);
  transition:
    opacity 360ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.loader-blueprint {
  width: min(92vw, 370px);
  min-height: 330px;
  display: grid;
  place-items: center;
  gap: 1.25rem;
  position: relative;
  padding: clamp(1.25rem, 4vw, 1.8rem);
  border: 1px solid rgba(234, 216, 196, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 247, 237, 0.08), rgba(249, 115, 22, 0.045)),
    rgba(10, 12, 18, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px) saturate(135%);
  transform: translateZ(0);
}

body[data-theme="light"] .loader-blueprint {
  border-color: rgba(120, 72, 35, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(197, 107, 29, 0.08)),
    rgba(255, 248, 238, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 28px 70px rgba(98, 62, 32, 0.18);
}

.loader-blueprint::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(234, 216, 196, 0.14);
  border-radius: 22px;
  opacity: 0.64;
  pointer-events: none;
}

body[data-theme="light"] .loader-blueprint::before {
  border-color: rgba(120, 72, 35, 0.2);
}

.loader-mark {
  width: min(100%, 265px);
  height: auto;
  overflow: visible;
  color: rgba(234, 216, 196, 0.68);
}

body[data-theme="light"] .loader-mark {
  color: rgba(120, 72, 35, 0.58);
}

.loader-plan path {
  opacity: 0;
  animation: loader-plan-in 760ms ease 120ms forwards;
}

.loader-guide {
  stroke: rgba(234, 216, 196, 0.22);
  stroke-width: 1.5;
  stroke-dasharray: 7 9;
  opacity: 0;
  animation: loader-guide-in 720ms ease 260ms forwards;
}

.loader-line {
  stroke: rgba(255, 247, 237, 0.92);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 7px rgba(255, 247, 237, 0.08));
  animation: loader-line-draw 420ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

body[data-theme="light"] .loader-line {
  stroke: rgba(42, 23, 13, 0.78);
  filter: drop-shadow(0 0 5px rgba(197, 107, 29, 0.12));
}

.loader-foundation {
  stroke-width: 5;
  animation-delay: 160ms;
}

.loader-column-1 {
  animation-delay: 400ms;
}

.loader-column-2 {
  animation-delay: 480ms;
}

.loader-column-3 {
  animation-delay: 560ms;
}

.loader-frame {
  animation-delay: 680ms;
}

.loader-roof {
  animation-delay: 790ms;
}

.loader-detail {
  stroke: rgba(234, 216, 196, 0.72);
  stroke-width: 2.4;
}

body[data-theme="light"] .loader-detail {
  stroke: rgba(120, 72, 35, 0.62);
}

.loader-detail-1 {
  animation-delay: 900ms;
}

.loader-detail-2 {
  animation-delay: 970ms;
}

.loader-accent {
  stroke: var(--color-accent);
  stroke-width: 5;
  filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.36));
  animation-name: loader-line-draw, loader-accent-glow;
  animation-duration: 400ms, 1200ms;
  animation-delay: 1040ms, 1380ms;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1), ease-in-out;
  animation-fill-mode: forwards, both;
  animation-iteration-count: 1, infinite;
}

.loader-node {
  fill: var(--color-accent);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.35));
  animation: loader-node-pop 360ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.loader-node-1 {
  animation-delay: 480ms;
}

.loader-node-2 {
  animation-delay: 560ms;
}

.loader-copy {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  text-align: center;
}

.loader-copy span,
.loader-copy strong {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: loader-copy-in 460ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.loader-copy span {
  color: rgba(234, 216, 196, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  animation-delay: 980ms;
}

body[data-theme="light"] .loader-copy span {
  color: rgba(111, 90, 73, 0.84);
}

.loader-copy strong {
  color: #fff7ed;
  font-size: clamp(1.05rem, 4.5vw, 1.34rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.015em;
  animation-delay: 1120ms;
}

body[data-theme="light"] .loader-copy strong {
  color: #23140c;
}

.js-enhanced :where(.site-header, main, .site-footer) {
  transition:
    opacity 540ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 540ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 540ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-enhanced:not(.is-loaded) :where(.site-header, main, .site-footer) {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  filter: blur(4px);
  pointer-events: none;
}

.js-enhanced.is-loaded :where(.site-header, main, .site-footer) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

@keyframes loader-grid-in {
  from {
    opacity: 0;
    transform: scale(1.03);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loader-scan {
  0% {
    opacity: 0;
    transform: translateX(-18%);
  }

  24%,
  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(18%);
  }
}

@keyframes loader-plan-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.34;
  }
}

@keyframes loader-guide-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes loader-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes loader-node-pop {
  from {
    opacity: 0;
    transform: scale(0.45);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loader-copy-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes loader-accent-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.28));
  }

  50% {
    filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.58));
  }
}

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

.section {
  padding-block: var(--space-section);
  scroll-margin-top: 88px;
}

.section-muted {
  background:
    radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.08), transparent 30%),
    linear-gradient(135deg, #11131b 0%, var(--color-bg-warm) 58%, #0b0c11 100%);
}

body[data-theme="light"] .section-muted {
  background:
    radial-gradient(circle at 82% 18%, rgba(197, 107, 29, 0.09), transparent 30%),
    linear-gradient(135deg, #fffefd 0%, #fff3e3 58%, #fffaf4 100%);
}

.section-dark {
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 12%, rgba(249, 115, 22, 0.22), transparent 32%),
    linear-gradient(135deg, #090a0f 0%, #17110d 52%, #231914 100%);
}

.section-dark p,
.section-dark .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

body[data-theme="light"] .section-dark:not(.hero) {
  color: #2a170d;
  background:
    radial-gradient(circle at 12% 12%, rgba(249, 166, 74, 0.12), transparent 32%),
    linear-gradient(135deg, #fffdf8 0%, #fff0dc 58%, #f1d4ad 100%);
}

body[data-theme="light"] .section-dark:not(.hero) p,
body[data-theme="light"] .section-dark:not(.hero) .eyebrow {
  color: rgba(42, 23, 13, 0.72);
}

body[data-theme="light"] .section-dark:not(.hero) h1,
body[data-theme="light"] .section-dark:not(.hero) h2,
body[data-theme="light"] .section-dark:not(.hero) h3 {
  color: #241309;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--color-accent);
  font-size: clamp(0.82rem, 0.78rem + 0.12vw, 0.9rem);
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0;
}

.lead {
  max-width: 58ch;
  font-size: clamp(1rem, 0.98rem + 0.22vw, 1.16rem);
  line-height: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 13, 0.88);
  border-bottom: 1px solid rgba(234, 216, 196, 0.12);
  backdrop-filter: blur(16px);
  transition: background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}

body[data-theme="light"] .site-header {
  background: rgba(255, 248, 238, 0.88);
  border-bottom-color: rgba(120, 72, 35, 0.14);
  box-shadow: 0 10px 32px rgba(98, 62, 32, 0.08);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: clamp(92px, 9vw, 122px);
  height: clamp(68px, 7vw, 90px);
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(ellipse at 50% 58%, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0.07) 42%, transparent 72%);
  border-radius: 24px;
  filter: drop-shadow(0 9px 18px rgba(0, 0, 0, 0.36));
}

body[data-theme="light"] .brand-mark {
  background: radial-gradient(ellipse at 50% 58%, rgba(126, 62, 18, 0.12), rgba(249, 166, 74, 0.08) 42%, transparent 72%);
  filter: drop-shadow(0 8px 14px rgba(98, 62, 32, 0.13));
}

.brand-mark-animated {
  transform: translateZ(0);
  animation: logo-breathe 5.4s ease-in-out infinite;
}

.brand-mark-animated::before {
  content: "";
  position: absolute;
  inset: 8% 3% 2%;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.22), transparent 68%);
  animation: logo-aura 5.4s ease-in-out infinite;
  opacity: 0.62;
}

.brand-mark-animated::after {
  content: "";
  position: absolute;
  inset: auto 10% 5% 10%;
  height: 12px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.2);
  filter: blur(9px);
  animation: logo-shadow 5.4s ease-in-out infinite;
}

.brand-logo {
  width: min(100%, 112px);
  height: auto;
  position: relative;
  z-index: 2;
  object-fit: contain;
  animation: logo-glow 5.4s ease-in-out infinite;
  transform-origin: 50% 68%;
}

.brand-logo-light {
  display: none;
}

body[data-theme="light"] .brand-logo-dark {
  display: none;
}

body[data-theme="light"] .brand-logo-light {
  display: block;
  animation-name: logo-glow-light;
}

@keyframes logo-aura {
  0%,
  100% {
    opacity: 0.34;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.68;
    transform: scale(1.03);
  }
}

@keyframes logo-breathe {
  0%,
  100% {
    transform: translateY(0) scale(0.995);
  }

  50% {
    transform: translateY(-2px) scale(1.01);
  }
}

@keyframes logo-shadow {
  0%,
  100% {
    opacity: 0.24;
    transform: scaleX(0.9);
  }

  50% {
    opacity: 0.4;
    transform: scaleX(1);
  }
}

@keyframes logo-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(249, 115, 22, 0.14));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.3));
    transform: scale(1.015);
  }
}

@keyframes logo-glow-light {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(126, 62, 18, 0.08));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 6px rgba(126, 62, 18, 0.16));
    transform: scale(1.01);
  }
}

.brand-text {
  font-size: 1rem;
  line-height: 1.4;
}


.site-nav {
  position: static;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-theme="light"] .site-nav {
  background: rgba(255, 250, 243, 0.96);
}


.site-nav a,
.nav-pill {
  min-height: 44px;
  padding: 0.82rem 0.75rem;
  color: var(--color-primary-dark);
  font-size: var(--type-nav);
  font-weight: 700;
  line-height: 1.45;
  border-radius: 999px;
  overflow: hidden;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.site-nav a::after,
.nav-pill::after {
  content: "";
  position: absolute;
  inset: auto 18px 9px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.78), transparent);
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: center;
  transition: transform 200ms ease, opacity 200ms ease;
}

body[data-theme="light"] .site-nav a,
body[data-theme="light"] .nav-pill {
  color: #321c10;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-current,
.nav-pill:hover,
.nav-pill:focus-visible,
.nav-pill.is-current {
  border-color: rgba(249, 115, 22, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-primary-dark);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.1);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-current::after,
.nav-pill:hover::after,
.nav-pill:focus-visible::after,
.nav-pill.is-current::after {
  opacity: 0.92;
  transform: scaleX(1);
}

body[data-theme="light"] .site-nav a:hover,
body[data-theme="light"] .site-nav a:focus-visible,
body[data-theme="light"] .site-nav a.is-current,
body[data-theme="light"] .nav-pill:hover,
body[data-theme="light"] .nav-pill:focus-visible,
body[data-theme="light"] .nav-pill.is-current {
  border-color: rgba(197, 107, 29, 0.3);
  background: rgba(120, 72, 35, 0.08);
  color: #321c10;
}

.theme-dock {
  display: inline-flex;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(234, 216, 196, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.theme-dock::before {
  content: "";
  position: absolute;
  inset: 4px;
  width: calc(50% - 4px);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.28), rgba(249, 115, 22, 0.08)),
    rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 18px rgba(0, 0, 0, 0.14);
  transform: translateX(0);
  transition: transform var(--transition-soft), background 220ms ease, box-shadow 220ms ease;
  pointer-events: none;
}

body[data-theme="light"] .theme-dock::before {
  background:
    linear-gradient(145deg, rgba(199, 100, 24, 0.18), rgba(199, 100, 24, 0.06)),
    rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 18px rgba(92, 62, 36, 0.1);
}

body[data-theme="dark"] .theme-dock::before {
  transform: translateX(-100%);
}

body[data-theme="light"] .theme-dock {
  border-color: rgba(120, 72, 35, 0.18);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 10px 24px rgba(98, 62, 32, 0.12);
}

:where(.nav-pill, .btn, .action-link) {
  border-radius: 18px;
  border: 1px solid rgba(234, 216, 196, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px) saturate(130%);
}

body[data-theme="light"] :where(.nav-pill, .btn, .action-link) {
  border-color: rgba(120, 72, 35, 0.18);
  background: rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(98, 62, 32, 0.12);
}

.dock-button {
  min-height: 44px;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.05rem;
  color: var(--color-text);
  border: 0;
  border-left: 1px solid rgba(234, 216, 196, 0.16);
  background: transparent;
  opacity: 0.68;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.dock-button:first-child {
  border-left: 0;
}

body[data-theme="light"] .dock-button {
  border-left-color: rgba(120, 72, 35, 0.18);
}

.dock-button:hover,
.dock-button:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.dock-button.is-active {
  opacity: 1;
  color: var(--color-primary-dark);
}

body[data-theme="light"] .dock-button:hover,
body[data-theme="light"] .dock-button:focus-visible {
  background: rgba(120, 72, 35, 0.06);
}

.dock-button:active {
  transform: scale(0.98);
}

.dock-icon {
  font-size: 1rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.dock-button:hover .dock-icon,
.dock-button:focus-visible .dock-icon {
  transform: scale(1.12);
}

.dock-label {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
}

.action-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  color: #fff7ed;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast);
}

.action-link:hover,
.action-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.12);
}

.action-link:active {
  transform: translateY(0) scale(0.985);
}

body[data-theme="light"] .action-link {
  color: #321c10;
}

body[data-theme="light"] .action-link:hover,
body[data-theme="light"] .action-link:focus-visible {
  background: rgba(120, 72, 35, 0.08);
}

.action-link-secondary {
  border-radius: 16px;
}

.action-link-ghost {
  padding-inline: 1.05rem;
}

.hero {
  position: relative;
  --hero-bg-x: 0px;
  --hero-bg-y: 0px;
  --hero-overlay-x: 0px;
  --hero-overlay-y: 0px;
  min-height: calc(92svh - 72px);
  padding-block: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(20, 13, 9, 0.18), rgba(15, 15, 20, 0.72) 48%, rgba(8, 9, 13, 0.96)),
    url("../images/mehrsam-hero-banner.png");
  background-position: center center, calc(50% + var(--hero-bg-x)) calc(50% + var(--hero-bg-y));
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-position 260ms ease-out;
}

body[data-theme="light"] .hero {
  background-image:
    linear-gradient(90deg, rgba(255, 249, 239, 0.34) 0%, rgba(255, 243, 224, 0.5) 42%, rgba(70, 39, 20, 0.18) 72%, rgba(22, 13, 8, 0.3) 100%),
    url("../images/mehrsam-hero-banner.png");
}

.hero h1 {
  max-width: min(100%, 10.5em);
  margin-bottom: 1.45rem;
  line-height: 1.14;
  letter-spacing: -0.032em;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(249, 115, 22, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(8, 9, 13, 0) 68%, rgba(8, 9, 13, 0.34));
  pointer-events: none;
  transform: translate3d(var(--hero-overlay-x), var(--hero-overlay-y), 0) scale(1.03);
  transition: transform 260ms ease-out, opacity 260ms ease-out;
  will-change: transform;
}

body[data-theme="light"] .hero::before {
  background:
    radial-gradient(circle at 86% 18%, rgba(197, 107, 29, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.04) 0%, rgba(255, 248, 238, 0.12) 68%, rgba(255, 250, 244, 0.48));
}

body[data-theme="light"] .hero h1,
body[data-theme="light"] .hero h2,
body[data-theme="light"] .hero h3 {
  color: #21140c;
}

body[data-theme="light"] .hero p,
body[data-theme="light"] .hero .eyebrow {
  color: rgba(36, 23, 15, 0.78);
}

body[data-theme="light"] .hero .eyebrow {
  color: var(--color-accent);
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid,
.split-layout,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-content {
  max-width: min(100%, 760px);
  margin-inline-end: auto;
  transform: none;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.3rem;
  color: #fff7ed;
  font-size: var(--type-button);
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -0.01em;
  overflow: hidden;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: -10% auto -10% -20%;
  width: 26%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.22) 45%, transparent 100%);
  opacity: 0;
  transform: translateX(-180%) skewX(-18deg);
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
  pointer-events: none;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.12);
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  opacity: 0.55;
  transform: translateX(440%) skewX(-18deg);
}

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

.btn-primary {
  color: #fff;
  border-color: rgba(249, 115, 22, 0.42);
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.38), rgba(194, 65, 12, 0.18)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 34px rgba(194, 65, 12, 0.2);
}

.btn-secondary {
  color: #fff7ed;
  border-color: rgba(234, 216, 196, 0.22);
}

body[data-theme="light"] .btn-secondary {
  color: #321c10;
  border-color: rgba(120, 72, 35, 0.2);
}

body[data-theme="light"] .btn:hover,
body[data-theme="light"] .btn:focus-visible {
  background: rgba(120, 72, 35, 0.08);
}

.visual-card {
  width: min(100%, 420px);
  min-height: clamp(210px, 25vw, 260px);
  display: grid;
  align-content: end;
  gap: 0.35rem;
}

.visual-card span,
.visual-card small {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.visual-card strong {
  font-size: clamp(2.15rem, 6vw, 3.45rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.glass-card {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(234, 216, 196, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 247, 237, 0.13), rgba(120, 53, 15, 0.08));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

body[data-theme="light"] .glass-card {
  border-color: rgba(120, 72, 35, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 239, 219, 0.38));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-copy p {
  max-width: 58ch;
}

.cards-grid,
.trust-grid {
  display: grid;
  gap: 1rem;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  background:
    linear-gradient(145deg, rgba(255, 247, 237, 0.035), rgba(249, 115, 22, 0.045)),
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition-soft),
    border-color var(--transition-soft),
    box-shadow var(--transition-soft),
    background var(--transition-soft);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(249, 115, 22, 0);
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-soft), border-color var(--transition-soft), box-shadow var(--transition-soft);
}

body[data-theme="light"] .card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(249, 166, 74, 0.06)),
    var(--color-surface);
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.24);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.card:hover::before,
.card:focus-within::before {
  opacity: 1;
  border-color: rgba(249, 115, 22, 0.26);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.1), 0 0 24px rgba(249, 115, 22, 0.08);
}

body[data-theme="light"] .card:hover,
body[data-theme="light"] .card:focus-within {
  box-shadow: 0 18px 38px rgba(98, 62, 32, 0.15);
}

.card p {
  font-size: 0.98rem;
  line-height: 1.9;
}

.card p:last-child,
.section-copy p:last-child {
  margin-bottom: 0;
}

.portfolio-dropdown {
  padding: clamp(0.8rem, 2vw, 1rem);
  overflow: clip;
}

.portfolio-toggle {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(0.95rem, 2.4vw, 1.25rem);
  color: var(--color-text);
  text-align: right;
  border: 1px solid rgba(234, 216, 196, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 30%, rgba(249, 115, 22, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 247, 237, 0.08), rgba(249, 115, 22, 0.035));
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

body[data-theme="light"] .portfolio-toggle {
  border-color: rgba(120, 72, 35, 0.16);
  background:
    radial-gradient(circle at 12% 30%, rgba(197, 107, 29, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(249, 166, 74, 0.08));
}

.portfolio-toggle:hover,
.portfolio-toggle:focus-visible,
.portfolio-toggle[aria-expanded="true"] {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.32);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.08), 0 18px 42px rgba(0, 0, 0, 0.24);
}

body[data-theme="light"] .portfolio-toggle:hover,
body[data-theme="light"] .portfolio-toggle:focus-visible,
body[data-theme="light"] .portfolio-toggle[aria-expanded="true"] {
  box-shadow: inset 0 0 0 1px rgba(197, 107, 29, 0.08), 0 18px 36px rgba(98, 62, 32, 0.12);
}

.portfolio-toggle-copy {
  display: grid;
  gap: 0.22rem;
}

.portfolio-kicker {
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.45;
}

.portfolio-toggle-copy strong {
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.38rem);
  font-weight: 850;
  line-height: 1.45;
}

.portfolio-toggle-meta {
  min-width: 76px;
  display: inline-grid;
  place-items: center;
  gap: 0.08rem;
  padding: 0.62rem 0.76rem;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 18px;
  background: rgba(249, 115, 22, 0.09);
}

.portfolio-toggle-meta .numeric {
  color: var(--color-accent);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.portfolio-toggle-meta span:last-child {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.portfolio-toggle-icon {
  width: 42px;
  height: 42px;
  position: relative;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(234, 216, 196, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-soft), background var(--transition-fast), border-color var(--transition-fast);
}

.portfolio-toggle-icon::before,
.portfolio-toggle-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--transition-soft), opacity var(--transition-fast);
}

.portfolio-toggle-icon::after {
  transform: rotate(90deg);
}

.portfolio-toggle[aria-expanded="true"] .portfolio-toggle-icon {
  transform: rotate(180deg);
  border-color: rgba(249, 115, 22, 0.34);
  background: rgba(249, 115, 22, 0.12);
}

.portfolio-toggle[aria-expanded="true"] .portfolio-toggle-icon::after {
  opacity: 0;
  transform: rotate(90deg) scaleX(0.2);
}

.portfolio-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  transition:
    grid-template-rows 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.portfolio-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1rem);
  overflow: hidden;
  padding-top: 1rem;
}

.portfolio-item {
  position: relative;
  min-height: 220px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(234, 216, 196, 0.15);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.975);
  transition:
    opacity 460ms ease var(--item-delay, 0ms),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1) var(--item-delay, 0ms),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.portfolio-panel.is-open .portfolio-item {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

body[data-theme="light"] .portfolio-item {
  border-color: rgba(120, 72, 35, 0.16);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 18px 34px rgba(98, 62, 32, 0.12);
}

.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 46%, rgba(8, 9, 13, 0.84));
  pointer-events: none;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: scale(1.035);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), filter 320ms ease;
}

.portfolio-item:hover,
.portfolio-item:focus-within {
  border-color: rgba(249, 115, 22, 0.32);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
}

.portfolio-item:hover img,
.portfolio-item:focus-within img {
  transform: scale(1.09);
  filter: saturate(1.08) contrast(1.04);
}

.portfolio-item figcaption {
  position: absolute;
  inset-inline: 0.85rem;
  inset-block-end: 0.85rem;
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 1.7rem);
  padding: 0.44rem 0.74rem;
  color: #fff7ed;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.45;
  border: 1px solid rgba(234, 216, 196, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.68);
  backdrop-filter: blur(12px);
}

.collaboration-process {
  position: relative;
  overflow: hidden;
  color: #fff7ed;
  background:
    radial-gradient(circle at 14% 18%, rgba(249, 115, 22, 0.2), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(234, 216, 196, 0.1), transparent 30%),
    linear-gradient(rgba(234, 216, 196, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 216, 196, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #08090d 0%, #17110d 52%, #241915 100%);
  background-size: auto, auto, 56px 56px, 56px 56px, auto;
  scroll-margin-top: 88px;
}

.collaboration-process::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(249, 115, 22, 0.08) 44% 45%, transparent 45% 100%),
    linear-gradient(180deg, rgba(8, 9, 13, 0.1), rgba(8, 9, 13, 0.42));
  pointer-events: none;
}

body[data-theme="light"] .collaboration-process {
  color: #241309;
  background:
    radial-gradient(circle at 14% 18%, rgba(197, 107, 29, 0.12), transparent 28%),
    radial-gradient(circle at 86% 72%, rgba(120, 72, 35, 0.08), transparent 30%),
    linear-gradient(rgba(120, 72, 35, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 72, 35, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #fffdf8 0%, #fff2df 54%, #fff8ef 100%);
  background-size: auto, auto, 56px 56px, 56px 56px, auto;
}

body[data-theme="light"] .collaboration-process::before {
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(197, 107, 29, 0.1) 44% 45%, transparent 45% 100%),
    linear-gradient(180deg, rgba(255, 250, 243, 0.08), rgba(255, 250, 243, 0.34));
}

.collaboration-process > .container {
  position: relative;
  z-index: 1;
}

.process-hero {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.process-hero .section-heading {
  margin-bottom: 0;
}

.collaboration-process h2 {
  max-width: 17ch;
  color: #ffffff;
}

body[data-theme="light"] .collaboration-process h2 {
  color: #241309;
}

.process-intro {
  max-width: 66ch;
  margin: 0;
  color: rgba(255, 247, 237, 0.76);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.12rem);
  line-height: 2;
}

body[data-theme="light"] .process-intro {
  color: rgba(42, 23, 13, 0.74);
}

.process-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.15rem);
}

.process-card {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.1rem, 2.4vw, 1.45rem);
  overflow: hidden;
  border: 1px solid rgba(234, 216, 196, 0.16);
  border-radius: clamp(20px, 2.4vw, 28px);
  background:
    linear-gradient(145deg, rgba(255, 247, 237, 0.11), rgba(249, 115, 22, 0.045)),
    rgba(8, 9, 13, 0.5);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(130%);
  transition: transform var(--transition-soft), border-color var(--transition-soft), box-shadow var(--transition-soft);
}

.process-card::before {
  content: "";
  position: absolute;
  inset-block: 1rem;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  opacity: 0.75;
}

.process-card::after {
  content: "";
  position: absolute;
  inset: auto auto -38px -38px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1), transparent 64%);
  pointer-events: none;
}

.process-card:hover,
.process-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .process-card {
  border-color: rgba(120, 72, 35, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(197, 107, 29, 0.06)),
    rgba(255, 250, 243, 0.82);
  box-shadow: 0 22px 54px rgba(98, 62, 32, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .process-card:hover,
body[data-theme="light"] .process-card:focus-within {
  box-shadow: 0 24px 58px rgba(98, 62, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.process-number {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.76), rgba(194, 65, 12, 0.36));
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.24);
}

.process-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.04rem, 0.98rem + 0.22vw, 1.2rem);
}

.process-card p {
  margin: 0;
  color: rgba(255, 247, 237, 0.72);
  font-size: 0.96rem;
  line-height: 1.9;
}

body[data-theme="light"] .process-card h3 {
  color: #241309;
}

body[data-theme="light"] .process-card p {
  color: rgba(42, 23, 13, 0.72);
}
.process-list {
  display: grid;
  gap: 1rem;
}

.process-item {
  position: relative;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--color-border);
  transition: transform var(--transition-soft), border-color var(--transition-soft);
}

.process-item span,
.trust-item strong {
  color: var(--color-accent);
  font-weight: 900;
}

.process-item span {
  font-family: var(--font-en);
  display: inline-block;
  margin-bottom: 0.72rem;
  font-size: clamp(1.18rem, 1rem + 0.44vw, 1.58rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.trust-item {
  display: grid;
  gap: 0.3rem;
}

.trust-item strong {
  font-family: var(--font-en);
  font-size: clamp(2.45rem, 2.05rem + 1vw, 3.15rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.trust-item span {
  font-size: 1rem;
}

.contact-copy p:not(.eyebrow) {
  max-width: 58ch;
}

.contact-card {
  position: relative;
  max-width: 520px;
  margin-inline-start: auto;
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.2rem, 3vw, 1.7rem);
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset-block: 1.3rem;
  inset-inline-start: 1.3rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  opacity: 0.72;
}

.contact-card-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  line-height: 1.85;
}

body[data-theme="light"] .contact-card-note {
  color: rgba(42, 23, 13, 0.72);
}

.contact-methods {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(234, 216, 196, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

body[data-theme="light"] .contact-method {
  border-color: rgba(120, 72, 35, 0.14);
  background: rgba(255, 255, 255, 0.34);
}

.contact-method dt,
.contact-method dd {
  margin: 0;
}

.contact-method dt {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
  font-weight: 750;
}

body[data-theme="light"] .contact-method dt {
  color: rgba(42, 23, 13, 0.62);
}

.contact-method .numeric {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.06rem;
  font-weight: 800;
}

body[data-theme="light"] .contact-method .numeric {
  color: #241309;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-actions .btn {
  width: 100%;
  min-height: 48px;
}

.social-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.social-links a {
  min-height: unset;
  display: inline-flex;
}

.location-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(249, 115, 22, 0.12), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(234, 216, 196, 0.08), transparent 30%),
    linear-gradient(135deg, #0b0c11 0%, #17110d 54%, #08090d 100%);
}

body[data-theme="light"] .location-section {
  background:
    radial-gradient(circle at 18% 14%, rgba(197, 107, 29, 0.14), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(120, 72, 35, 0.08), transparent 30%),
    linear-gradient(135deg, #fffaf3 0%, #f4dfc5 54%, #fff8ee 100%);
}

.location-grid {
  display: grid;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
}

.location-content p:not(.eyebrow) {
  max-width: 62ch;
}

.location-contact-link {
  position: relative;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  color: var(--color-accent);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.6;
  border-radius: 999px;
}

.location-contact-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px var(--color-accent-soft);
}

.location-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.location-actions .btn {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(234, 216, 196, 0.18);
  border-radius: 999px;
}

.btn-map {
  color: #fff7ed;
  border-color: rgba(249, 115, 22, 0.34) !important;
  background: rgba(249, 115, 22, 0.1);
}

body[data-theme="light"] .btn-map {
  color: #321c10;
  background: rgba(197, 107, 29, 0.1);
}

.location-card {
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.location-address {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  font-style: normal;
}

.location-address :where(span, strong, a) {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.85;
}

body[data-theme="light"] .location-address :where(span, strong, a) {
  color: rgba(42, 23, 13, 0.82);
}

.location-detail-address {
  position: relative;
  padding-inline-start: 1.1rem;
}

.location-detail-address::before {
  content: "";
  position: absolute;
  inset-block-start: 0.82em;
  inset-inline-start: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: 0 0 0 6px var(--color-accent-soft);
}

.location-address strong {
  font-weight: 850;
}

.location-map-button {
  width: fit-content;
  min-height: 48px;
  padding-inline: 1.2rem;
}

.map-preview {
  position: relative;
  min-height: clamp(260px, 56vw, 360px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(234, 216, 196, 0.16);
  border-radius: clamp(22px, 4vw, 30px);
  background:
    linear-gradient(rgba(234, 216, 196, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 216, 196, 0.06) 1px, transparent 1px),
    linear-gradient(35deg, transparent 44%, rgba(249, 115, 22, 0.08) 45%, rgba(249, 115, 22, 0.08) 46%, transparent 47%),
    radial-gradient(circle at 62% 44%, rgba(249, 115, 22, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(255, 247, 237, 0.08), rgba(8, 9, 13, 0.34));
  background-size: 34px 34px, 34px 34px, 160px 160px, auto, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -42px 70px rgba(0, 0, 0, 0.22);
}

body[data-theme="light"] .map-preview {
  border-color: rgba(120, 72, 35, 0.18);
  background:
    linear-gradient(rgba(120, 72, 35, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 72, 35, 0.07) 1px, transparent 1px),
    linear-gradient(35deg, transparent 44%, rgba(197, 107, 29, 0.1) 45%, rgba(197, 107, 29, 0.1) 46%, transparent 47%),
    radial-gradient(circle at 62% 44%, rgba(197, 107, 29, 0.16), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 229, 198, 0.26));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 -42px 70px rgba(98, 62, 32, 0.08);
}

.map-preview::before,
.map-preview::after,
.map-route,
.map-node,
.map-pin,
.map-label,
.map-preview-link {
  position: absolute;
}

.map-preview::before {
  content: "";
  inset: 16px;
  z-index: -1;
  border: 1px dashed rgba(234, 216, 196, 0.14);
  border-radius: 22px;
}

.map-preview::after {
  content: "";
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 12%, rgba(255, 247, 237, 0.08) 42%, transparent 72%);
  transform: translateX(18%) rotate(6deg);
}

body[data-theme="light"] .map-preview::before {
  border-color: rgba(120, 72, 35, 0.18);
}

.map-route {
  height: 10px;
  border-radius: 999px;
  background: rgba(234, 216, 196, 0.2);
  box-shadow: 0 0 0 1px rgba(234, 216, 196, 0.08);
}

.map-route-main {
  width: 68%;
  inset-block-start: 48%;
  inset-inline-start: 12%;
  transform: rotate(-18deg);
  background: linear-gradient(90deg, rgba(234, 216, 196, 0.18), rgba(249, 115, 22, 0.58), rgba(234, 216, 196, 0.18));
}

.map-route-secondary {
  width: 52%;
  inset-block-start: 31%;
  inset-inline-start: 34%;
  transform: rotate(28deg);
}

.map-route-tertiary {
  width: 42%;
  inset-block-start: 68%;
  inset-inline-start: 4%;
  transform: rotate(18deg);
}

body[data-theme="light"] .map-route {
  background: rgba(120, 72, 35, 0.17);
}

body[data-theme="light"] .map-route-main {
  background: linear-gradient(90deg, rgba(120, 72, 35, 0.16), rgba(197, 107, 29, 0.62), rgba(120, 72, 35, 0.16));
}

.map-node {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(234, 216, 196, 0.8);
  box-shadow: 0 0 0 7px rgba(234, 216, 196, 0.08);
}

.map-node-one {
  inset-block-start: 30%;
  inset-inline-start: 22%;
}

.map-node-two {
  inset-block-start: 66%;
  inset-inline-start: 73%;
}

.map-pin {
  width: 28px;
  height: 28px;
  inset-block-start: 42%;
  inset-inline-start: 56%;
  border: 4px solid rgba(255, 247, 237, 0.92);
  border-radius: 50% 50% 50% 0;
  background: var(--color-accent);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.38), 0 0 0 10px rgba(249, 115, 22, 0.12);
  transform: rotate(-45deg);
}

.map-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: #fff7ed;
}

.map-label {
  inset-block-start: calc(42% + 36px);
  inset-inline-start: 44%;
  padding: 0.42rem 0.75rem;
  color: #fff7ed;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid rgba(234, 216, 196, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(12px);
}

body[data-theme="light"] .map-label {
  color: #23140c;
  background: rgba(255, 250, 243, 0.76);
  border-color: rgba(120, 72, 35, 0.18);
}

.map-preview-link {
  inset-inline: 1rem;
  inset-block-end: 1rem;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  color: #fff;
  font-weight: 800;
  line-height: 1.45;
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(249, 115, 22, 0.42), rgba(194, 65, 12, 0.2)),
    rgba(8, 9, 13, 0.58);
  box-shadow: 0 16px 32px rgba(194, 65, 12, 0.2);
  backdrop-filter: blur(12px);
}

body[data-theme="light"] .map-preview-link {
  color: #fff;
}

.contact-location-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.25rem, 6vw, 5rem);
}

.contact-location-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.08), transparent),
    radial-gradient(circle at 82% 18%, rgba(234, 216, 196, 0.08), transparent 28%);
  opacity: 0.82;
}

.contact-location-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.25rem, 4vw, 2.4rem);
  align-items: center;
}

.contact-location-copy {
  position: relative;
  max-width: 660px;
}

.contact-location-copy::before {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), rgba(249, 115, 22, 0.12));
  transition: width 220ms ease, opacity 220ms ease;
}

.contact-location-section:hover .contact-location-copy::before {
  width: 74px;
  opacity: 0.92;
}

.contact-location-copy p:not(.eyebrow):not(.office-hours) {
  max-width: 62ch;
}

.contact-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.65rem;
}

.contact-location-actions .btn {
  min-width: 128px;
}

.office-hours {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding: 0.54rem 0.82rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.65;
  border: 1px solid rgba(234, 216, 196, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
}

body[data-theme="light"] .office-hours {
  color: rgba(42, 23, 13, 0.72);
  border-color: rgba(120, 72, 35, 0.16);
  background: rgba(255, 255, 255, 0.36);
}

.contact-location-card {
  position: relative;
  gap: 0.95rem;
  padding: clamp(1.05rem, 2.5vw, 1.55rem);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.contact-location-card:hover,
.contact-location-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.34);
}

body[data-theme="light"] .contact-location-card:hover,
body[data-theme="light"] .contact-location-card:focus-within {
  box-shadow: 0 18px 42px rgba(98, 62, 32, 0.14);
}

.location-card-header {
  display: grid;
  gap: 0.25rem;
}

.location-card-kicker {
  width: fit-content;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.4;
}

.location-card-header h3 {
  margin-bottom: 0;
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
}

.contact-location-card .location-address {
  padding-block: 0.2rem;
}

.contact-location-card .location-map-button {
  width: 100%;
}

.compact-map-preview {
  min-height: clamp(170px, 28vw, 220px);
  border-radius: 22px;
}

.contact-location-card:hover .map-pin,
.contact-location-card:focus-within .map-pin {
  transform: rotate(-45deg) translate3d(2px, -3px, 0);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.34), 0 0 0 10px rgba(249, 115, 22, 0.1);
}

.map-pin,
.contact-location-copy::before,
.contact-location-card {
  transition-property: transform, width, opacity, border-color, box-shadow;
  transition-duration: 220ms;
  transition-timing-function: ease;
}

.site-footer {
  padding-block: 1.5rem;
  background: #050609;
  color: rgba(255, 255, 255, 0.72);
}

body[data-theme="light"] .site-footer {
  background: #fff3e2;
  color: rgba(42, 23, 13, 0.72);
  border-top: 1px solid rgba(120, 72, 35, 0.14);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-inner p {
  margin: 0;
  color: inherit;
}

.footer-inner a {
  font-weight: 700;
}

@media (max-width: 759px) {
  :root {
    --space-section: clamp(2.75rem, 12vw, 4.25rem);
    --type-h1: clamp(2rem, 10vw, 2.72rem);
    --type-h2: clamp(1.52rem, 7vw, 2.2rem);
  }

  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .theme-dock {
    width: auto;
    margin-inline-start: auto;
    border-radius: 999px;
    justify-content: stretch;
  }

  .dock-button {
    flex: 0 0 auto;
    min-height: 44px;
    justify-content: center;
    gap: 0.38rem;
    padding: 0.62rem 0.76rem;
  }

  .dock-label {
    font-size: 0.86rem;
  }

  .header-inner {
    min-height: 66px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding-block: 0.36rem;
  }

  .brand {
    min-width: 0;
  }


  .theme-dock {
    grid-column: 1 / -1;
    justify-self: start;
    margin-inline-start: 0;
  }

  .brand-text {
    max-width: 10rem;
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 84px;
    height: 62px;
  }

  .brand-logo {
    width: 78px;
  }

  .site-nav {
    inset: 116px 0.75rem auto 0.75rem;
    gap: 0.25rem;
    padding: 0.65rem;
    border-radius: 20px;
    background: rgba(17, 19, 27, 0.92);
    backdrop-filter: blur(18px) saturate(130%);
  }

  body[data-theme="light"] .site-nav {
    background: rgba(255, 253, 248, 0.94);
  }

  .site-nav a,
  .nav-pill {
    min-height: 40px;
    padding: 0.58rem 0.75rem;
    font-size: 0.92rem;
    border-radius: 14px;
  }

  .hero {
    min-height: auto;
    padding-block: 2.65rem 3.1rem;
    background-position: center center, 40% center;
  }

  body[data-theme="light"] .hero {
    background-image:
      linear-gradient(180deg, rgba(255, 253, 248, 0.94) 0%, rgba(255, 248, 238, 0.9) 48%, rgba(255, 246, 232, 0.72) 100%),
      url("../images/mehrsam-hero-banner.png");
  }

  .hero-grid {
    gap: 1.75rem;
  }

  .hero-actions,
  .social-links {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .social-links a {
    width: 100%;
  }

  h1,
  h2 {
    max-width: 100%;
  }

  .hero-content {
    max-width: 100%;
    transform: none;
  }

  .hero h1 {
    margin-bottom: 1rem;
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  .lead {
    max-width: 38rem;
    font-size: 1rem;
    line-height: 1.9;
  }

  .hero-actions {
    gap: 0.65rem;
    margin-top: 1.35rem;
  }

  .section-heading {
    margin-bottom: 1.35rem;
  }

  .section-copy p,
  .contact-location-copy p:not(.eyebrow):not(.office-hours),
  .process-intro {
    max-width: 100%;
    line-height: 1.9;
  }

  .portfolio-toggle {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
  }

  .portfolio-toggle-meta {
    display: none;
  }

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

  .portfolio-item {
    min-height: 245px;
    border-radius: 20px;
  }

  .process-hero,
  .process-cards {
    grid-template-columns: 1fr;
  }

  .collaboration-process {
    background-size: auto, auto, 44px 44px, 44px 44px, auto;
  }

  .process-card {
    border-radius: 20px;
  }

  .location-card {
    padding: 1rem;
    border-radius: 22px;
  }

  .map-label {
    inset-inline-start: auto;
    inset-inline-end: 1rem;
    max-width: calc(100% - 2rem);
  }
}

@media (max-width: 759px) {
  :root {
    --space-section: clamp(2.45rem, 10vw, 3.65rem);
    --type-h1: clamp(1.86rem, 8.6vw, 2.42rem);
    --type-h2: clamp(1.42rem, 6.2vw, 2rem);
  }

  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .container {
    width: min(100% - 1.1rem, var(--container));
  }

  .header-inner > .theme-dock {
    display: none;
  }

  .header-inner {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
  }

  .brand {
    width: 100%;
  }

  .brand-text {
    max-width: min(62vw, 13rem);
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .brand-mark {
    width: 74px;
    height: 56px;
    border-radius: 20px;
  }

  .brand-logo {
    width: 70px;
  }

  .site-nav {
    position: static;
    width: 100%;
    max-width: 100%;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.3rem;
    padding: 0.48rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(249, 115, 22, 0.035)),
      rgba(17, 19, 27, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px) saturate(130%);
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  body[data-theme="light"] .site-nav {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 239, 219, 0.36)),
      rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 12px 28px rgba(98, 62, 32, 0.1);
  }

  .site-nav a,
  .nav-pill,
  .mobile-theme-button {
    min-width: max-content;
    min-height: 42px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0.58rem 0.82rem;
    color: rgba(255, 248, 239, 0.92);
    font-size: 0.9rem;
    font-weight: 820;
    line-height: 1.35;
    border: 1px solid rgba(234, 216, 196, 0.14);
    border-radius: 999px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
      rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }

  .site-nav a::before,
  .nav-pill::before {
    display: none;
  }

  .site-nav a::after,
  .nav-pill::after {
    inset: auto 16px 7px;
  }

  body[data-theme="light"] .site-nav a,
  body[data-theme="light"] .nav-pill,
  body[data-theme="light"] .mobile-theme-button {
    color: #2f1a0f;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 239, 219, 0.36)),
      rgba(255, 255, 255, 0.64);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  }

  .mobile-theme-dock {
    display: contents;
  }

  .mobile-theme-button {
    font-family: var(--font-body);
    cursor: pointer;
  }

  .mobile-theme-button.is-active {
    color: var(--color-primary-dark);
    border-color: rgba(249, 115, 22, 0.36);
    background:
      linear-gradient(145deg, rgba(249, 115, 22, 0.22), rgba(249, 115, 22, 0.08)),
      rgba(255, 255, 255, 0.065);
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.08), 0 8px 18px rgba(0, 0, 0, 0.12);
  }

  .hero {
    padding-block: 2.25rem 2.8rem;
  }

  .hero-grid {
    gap: 1.35rem;
  }

  .lead {
    font-size: 0.98rem;
    line-height: 1.95;
  }

  .section-heading {
    margin-bottom: 1.15rem;
  }

  .card,
  .process-card,
  .portfolio-dropdown {
    padding: 1rem;
  }

  .contact-location-actions {
    gap: 0.6rem;
    margin-top: 1.2rem;
  }

  .office-hours {
    width: 100%;
    justify-content: center;
    border-radius: 16px;
  }
}

@media (min-width: 760px) {

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body[data-theme="light"] .site-nav {
    background: transparent;
  }

  .site-nav a,
  .nav-pill {
    padding: 0.58rem 0.78rem;
    font-size: 0.92rem;
  }

  h1 {
    font-size: var(--type-h1-desktop);
    line-height: 1.18;
  }

  .hero-grid,
  .split-layout,
  .contact-grid,
  .location-grid,
  .contact-location-grid {
    grid-template-columns: 1.04fr 0.96fr;
    align-items: center;
  }

  .location-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .location-actions .btn {
    width: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: clamp(520px, 78svh, 720px);
    justify-items: start;
  }

  .process-hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  }

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

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

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

  .process-item {
    border-bottom: 0;
    border-inline-start: 1px solid var(--color-border);
    padding-inline-start: 1.25rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 760px) and (max-width: 1023px) {
  .process-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}

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

  body.js-enhanced:not(.is-loaded) {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .theme-transition-ripple {
    display: none;
  }

  .js-enhanced .site-loader {
    display: none !important;
  }

  .js-enhanced:not(.is-loaded) :where(.site-header, main, .site-footer) {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
  }

  .brand-mark-animated::before,
  .brand-mark-animated,
  .brand-logo {
    animation: none !important;
  }

  .js-enhanced [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero,
  .hero::before {
    transition: none !important;
  }

  .contact-location-section:hover .contact-location-copy::before {
    width: 54px !important;
  }

  .contact-location-card:hover,
  .contact-location-card:focus-within,
  .contact-location-card:hover .map-pin,
  .contact-location-card:focus-within .map-pin {
    transform: none !important;
  }

}