:root {
  --background: oklch(0.96 0.018 88);
  --foreground: oklch(0.20 0.035 258);
  --muted: oklch(0.46 0.03 258);
  --brand: oklch(0.72 0.16 72);
  --brand-strong: oklch(0.58 0.19 42);
  --surface: oklch(0.99 0.01 88);
  --graphite: oklch(0.20 0.035 258);
  --border: rgb(15 23 42 / 0.10);
  --scroll-progress: 0;
  --scene-progress: 0;
}

body {
  background: var(--background) !important;
  color: var(--foreground) !important;
  font-family: 'Inter', sans-serif !important;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  pointer-events: none;
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
  background: linear-gradient(90deg, #111827, #dc2626, #f59e0b);
  box-shadow: 0 0 24px rgb(245 158 11 / 0.45);
}

#site-header {
  transition: background-color 240ms ease-out, box-shadow 240ms ease-out, transform 240ms ease-out;
}

#site-header.header-scrolled {
  background: rgb(250 246 235 / 0.94);
  box-shadow: 0 18px 50px rgb(15 23 42 / 0.08);
}

.font-serif {
  font-family: 'Playfair Display', serif !important;
}

.transition-all-300 {
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 2px;
  content: '';
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 999px;
  background: linear-gradient(90deg, #111827, #dc2626, #f59e0b);
  transition: transform 220ms ease-out;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgb(245 158 11) !important;
  outline-offset: 3px !important;
}

.hero-bg {
  background:
    radial-gradient(circle at 16% 18%, rgb(245 158 11 / 0.18), transparent 28%),
    radial-gradient(circle at 84% 26%, rgb(220 38 38 / 0.13), transparent 24%),
    linear-gradient(135deg, rgb(255 255 255 / 0.86), transparent 44%);
}

.ambient-glow {
  position: absolute;
  z-index: 0;
  display: block;
  width: 24rem;
  height: 24rem;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.56;
  animation: ambientGlow 7s ease-in-out infinite;
}

.ambient-glow-one {
  top: 8rem;
  right: 7%;
  background: rgb(245 158 11 / 0.28);
}

.ambient-glow-two {
  bottom: 2rem;
  left: -6rem;
  background: rgb(220 38 38 / 0.16);
  animation-delay: -2.4s;
}

.hero-bg > .mx-auto {
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(#111827 0 33%, #dc2626 33% 66%, #f59e0b 66% 100%);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 28px rgb(15 23 42 / 0.16);
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.35);
}

.section-kicker {
  color: var(--brand-strong);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-kicker-light {
  color: rgb(252 211 77);
}

.metric-card {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 0.68);
  padding: 1rem;
  box-shadow: 0 18px 60px rgb(15 23 42 / 0.07);
  backdrop-filter: blur(14px);
}

.metric-card dt {
  color: rgb(100 116 139);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-card dd {
  margin-top: 0.35rem;
  color: rgb(15 23 42);
  font-size: 1.25rem;
  font-weight: 900;
}

.showcase-card {
  position: relative;
  border-radius: 2rem;
  padding: 0.75rem;
  background: rgb(255 255 255 / 0.55);
  box-shadow: 0 28px 80px rgb(15 23 42 / 0.18);
  animation: subtleFloat 7s ease-in-out infinite;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
}

.showcase-card::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: '';
  border-radius: inherit;
  background: linear-gradient(135deg, rgb(245 158 11 / 0.52), transparent 35%, rgb(220 38 38 / 0.28));
  opacity: 0.84;
}

.route-ribbon {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  display: flex;
  max-width: calc(100% - 3.5rem);
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
  background: rgb(15 23 42 / 0.68);
  padding: 0.6rem 0.8rem;
  color: white;
  font-size: 0.76rem;
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.route-ribbon i {
  width: 1.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dc2626, #f59e0b);
}

.showcase-note {
  position: absolute;
  right: 1.75rem;
  bottom: 1.75rem;
  max-width: 19rem;
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 0.88);
  padding: 1rem;
  box-shadow: 0 20px 60px rgb(15 23 42 / 0.20);
  backdrop-filter: blur(16px);
}

.showcase-note span {
  display: block;
  color: rgb(100 116 139);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-note strong {
  display: block;
  margin-top: 0.4rem;
  color: rgb(15 23 42);
  font-size: 0.95rem;
  line-height: 1.45;
}

.solution-card,
.process-card,
.project-card {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: 0 20px 70px rgb(15 23 42 / 0.08);
}

.solution-card,
.process-card {
  background: rgb(255 255 255 / 0.72);
}

.solution-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  transition: transform 260ms ease, box-shadow 260ms ease;
  will-change: transform;
}

.solution-card::after {
  position: absolute;
  top: -4rem;
  right: -4rem;
  width: 10rem;
  height: 10rem;
  content: '';
  border-radius: 999px;
  background: rgb(245 158 11 / 0.16);
  filter: blur(20px);
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.01) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: 0 30px 90px rgb(15 23 42 / 0.16), 0 0 0 1px rgb(245 158 11 / 0.20) inset;
}

.solution-badge {
  display: inline-flex;
  width: 2.55rem;
  height: 2.55rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #111827, #dc2626 52%, #f59e0b);
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
}

.route-tab {
  border: 1px solid rgb(15 23 42 / 0.10);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.80);
  padding: 0.85rem 1rem;
  color: rgb(51 65 85);
  font-size: 0.9rem;
  font-weight: 900;
  transition: transform 220ms ease-out, background-color 220ms ease-out, color 220ms ease-out, box-shadow 220ms ease-out;
}

.route-tab:hover,
.route-tab.is-active {
  transform: translateY(-2px);
  background: rgb(15 23 42);
  color: white;
  box-shadow: 0 16px 36px rgb(15 23 42 / 0.16);
}

.route-panel {
  position: relative;
  overflow: hidden;
  min-height: 23rem;
  border-radius: 1.8rem;
  background:
    linear-gradient(135deg, rgb(15 23 42), rgb(30 41 59) 52%, rgb(127 29 29));
  padding: 2rem;
  box-shadow: 0 24px 80px rgb(15 23 42 / 0.22);
}

.route-panel-glow {
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgb(245 158 11 / 0.22);
  filter: blur(24px);
  animation: ambientGlow 6s ease-in-out infinite;
}

.route-panel > *:not(.route-panel-glow) {
  position: relative;
  z-index: 1;
}

.route-panel li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid rgb(255 255 255 / 0.10);
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.06);
  padding: 0.85rem;
}

.route-panel li::before {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.42rem;
  content: '';
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 18px rgb(245 158 11 / 0.7);
}

.process-card {
  padding: 1.5rem;
  transition: transform 260ms ease-out, box-shadow 260ms ease-out;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 80px rgb(15 23 42 / 0.11);
}

.process-card span {
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 900;
}

.process-card h3 {
  margin-top: 1.25rem;
  color: rgb(15 23 42);
  font-size: 1.08rem;
  font-weight: 900;
}

.process-card p {
  margin-top: 0.65rem;
  color: rgb(71 85 105);
  font-size: 0.92rem;
  line-height: 1.65;
}

.project-card {
  overflow: hidden;
  background: rgb(255 255 255 / 0.06);
  transition: transform 300ms ease-out, border-color 300ms ease-out;
}

.project-card:hover {
  transform: translateY(-8px) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-color: rgb(245 158 11 / 0.36);
}

.project-card img {
  transition: transform 520ms ease-out, filter 520ms ease-out;
}

.project-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.scene-scroll {
  position: relative;
  background:
    radial-gradient(circle at 72% 18%, rgb(245 158 11 / 0.18), transparent 26%),
    linear-gradient(180deg, rgb(250 246 235), rgb(241 234 220));
}

.scene-stage {
  display: grid;
  min-height: 120vh;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .scene-stage {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.scene-visual {
  position: sticky;
  top: 7rem;
  min-height: 32rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background:
    radial-gradient(circle at calc(28% + var(--scene-progress) * 48%) 16%, rgb(245 158 11 / calc(0.20 + var(--scene-progress) * 0.28)), transparent 28%),
    linear-gradient(135deg, rgb(15 23 42), rgb(30 41 59) 55%, rgb(127 29 29));
  box-shadow: 0 30px 100px rgb(15 23 42 / 0.24);
}

.scene-room {
  position: absolute;
  inset: 2rem;
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgb(255 255 255 / 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgb(255 255 255 / 0.06), rgb(0 0 0 / 0.18));
  background-size: 3rem 3rem, 3rem 3rem, auto;
}

.light-beam {
  position: absolute;
  top: 12%;
  height: 0.34rem;
  transform-origin: left center;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(255 255 255 / 0.18), #f59e0b, #dc2626, rgb(255 255 255 / 0.10));
  filter: drop-shadow(0 0 16px rgb(245 158 11 / 0.35));
  opacity: calc(0.48 + var(--scene-progress) * 0.36);
}

.light-beam-main {
  left: 10%;
  width: calc(42% + var(--scene-progress) * 32%);
  transform: rotate(calc(18deg - var(--scene-progress) * 9deg));
}

.light-beam-side {
  right: 8%;
  top: 42%;
  width: calc(34% + var(--scene-progress) * 20%);
  transform: rotate(calc(-22deg + var(--scene-progress) * 10deg));
  opacity: calc(0.26 + var(--scene-progress) * 0.24);
}

.wall-art {
  position: absolute;
  top: 24%;
  left: 12%;
  width: 7rem;
  height: 9rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 1rem;
  background:
    linear-gradient(#111827 0 33%, #dc2626 33% 66%, #f59e0b 66% 100%);
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.24);
  transform: translateY(calc(var(--scene-progress) * -16px)) rotate(-5deg);
}

.sofa-shape {
  position: absolute;
  right: 9%;
  bottom: 17%;
  width: 50%;
  height: 24%;
  border-radius: 1.6rem;
  background: rgb(255 255 255 / 0.88);
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.22), inset 0 18px 30px rgb(245 158 11 / 0.16);
  transform: translateX(calc((var(--scene-progress) - 0.5) * 32px));
}

.sofa-shape::before,
.sofa-shape::after {
  position: absolute;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 28%;
  content: '';
  border-radius: 0.9rem;
  background: rgb(15 23 42 / 0.10);
}

.sofa-shape::before { left: 1.15rem; }
.sofa-shape::after { right: 1.15rem; }

.floor-line {
  position: absolute;
  right: 0;
  bottom: 16%;
  left: 0;
  height: 1px;
  background: rgb(255 255 255 / 0.18);
}

.scene-copy {
  display: grid;
  gap: 1rem;
}

.scene-step {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 0.64);
  padding: 1.4rem;
  opacity: 0.54;
  transform: translateX(0) scale(0.98);
  transition: opacity 260ms ease-out, transform 260ms ease-out, background-color 260ms ease-out, box-shadow 260ms ease-out;
}

.scene-step.is-active {
  opacity: 1;
  transform: translateX(-8px) scale(1);
  background: rgb(255 255 255 / 0.90);
  box-shadow: 0 24px 70px rgb(15 23 42 / 0.12);
}

.scene-step span {
  color: var(--brand-strong);
  font-size: 0.75rem;
  font-weight: 900;
}

.scene-step h3 {
  margin-top: 0.8rem;
  font-size: 1.3rem;
  font-weight: 900;
  color: rgb(15 23 42);
}

.scene-step p {
  margin-top: 0.5rem;
  color: rgb(71 85 105);
  line-height: 1.65;
}

.cta-panel {
  position: relative;
  overflow: hidden;
}

.cta-panel::after {
  position: absolute;
  top: -6rem;
  right: -5rem;
  width: 18rem;
  height: 18rem;
  content: '';
  border-radius: 999px;
  background: rgb(245 158 11 / 0.22);
  filter: blur(28px);
  animation: ambientGlow 6s ease-in-out infinite;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgb(71 85 105);
  font-size: 0.875rem;
  font-weight: 800;
}

.form-control {
  display: block;
  width: 100%;
  border: 1px solid rgb(15 23 42 / 0.14) !important;
  border-radius: 1rem !important;
  background: rgb(255 255 255 / 0.76) !important;
  color: rgb(15 23 42) !important;
  padding: 0.85rem 1rem !important;
  font-size: 0.925rem !important;
}

.form-control:focus {
  border-color: rgb(245 158 11 / 0.88) !important;
  box-shadow: 0 0 0 4px rgb(245 158 11 / 0.18) !important;
}

.form-control::placeholder {
  color: rgb(148 163 184) !important;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 620ms ease-out, transform 620ms ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .reveal-hero {
  transform: translateY(24px);
  transition-duration: 720ms;
}

.motion-ready .reveal-hero-image {
  transform: translateY(24px) scale(0.96);
  transition-duration: 780ms;
  transition-delay: 120ms;
}

.motion-ready .reveal-hero-image.is-visible {
  transform: translateY(0) scale(1);
}

#consult-modal.flex {
  animation: modalBackdropIn 260ms ease-out;
}

#consult-modal.flex .modal-panel {
  animation: modalPanelIn 320ms ease-out;
}

@keyframes modalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes subtleFloat {
  0%, 100% { transform: perspective(900px) translateY(0) rotate(0deg) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
  50% { transform: perspective(900px) translateY(-10px) rotate(-0.35deg) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
}

@keyframes ambientGlow {
  0%, 100% { transform: scale(0.96); opacity: 0.45; }
  50% { transform: scale(1.05); opacity: 0.72; }
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgb(250 246 235); }
::-webkit-scrollbar-thumb { background: rgb(180 127 66); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgb(127 29 29); }

@media (max-width: 640px) {
  .showcase-card img {
    height: 26rem;
  }

  .showcase-note {
    position: static;
    margin-top: 0.75rem;
    max-width: none;
  }

  .route-ribbon {
    right: 1.25rem;
    left: 1.25rem;
    justify-content: center;
    overflow-x: auto;
  }

  .scene-visual {
    position: relative;
    top: auto;
    min-height: 24rem;
  }
}

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

  .motion-ready .reveal,
  .motion-ready .reveal-hero-image {
    opacity: 1;
    transform: none;
  }

  #scroll-progress {
    display: none;
  }

  .scene-step {
    opacity: 1;
    transform: none;
  }
}
