.confidence-field {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100svh;
  min-height: 680px;
  overflow: clip;
  background: #06111a;
}

.hero-header-spacer { block-size: calc(clamp(22px, 2vw, 29px) + clamp(22px, 2vw, 29px) + 43px); }

.hero-photo { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-atmosphere { position: absolute; z-index: -2; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(3, 11, 18, .5) 0%, rgba(4, 13, 21, .3) 29%, rgba(5, 13, 21, .04) 58%, rgba(4, 9, 13, .05) 100%), linear-gradient(to bottom, rgba(4, 13, 21, .14), transparent 22%, transparent 73%, rgba(3, 8, 12, .48) 100%); }
.hero-atmosphere::after { position: absolute; content: ""; inset: 0; background: radial-gradient(circle at 26% 43%, rgba(4, 15, 24, .34), transparent 39%), radial-gradient(circle at 68% 29%, rgba(56, 111, 155, .16), transparent 35%); }

.hero-particles { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.hero-particles i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #f2c887; box-shadow: 0 0 12px 3px rgba(229, 173, 92, .55); animation: gold-drift 8s ease-in-out infinite; }
.hero-particles i:nth-child(1) { top: 15%; inset-inline-start: 6%; animation-delay: -2s; }
.hero-particles i:nth-child(2) { top: 22%; inset-inline-start: 25%; width: 3px; height: 3px; animation-delay: -5s; }
.hero-particles i:nth-child(3) { top: 13%; inset-inline-end: 21%; animation-delay: -4s; }
.hero-particles i:nth-child(4) { top: 48%; inset-inline-end: 10%; width: 3px; height: 3px; animation-delay: -1s; }
.hero-particles i:nth-child(5) { bottom: 19%; inset-inline-start: 17%; animation-delay: -6s; }
.hero-particles i:nth-child(6) { bottom: 25%; inset-inline-end: 35%; width: 2px; height: 2px; animation-delay: -3s; }

.confidence-field > main { position: relative; z-index: 1; min-height: 0; }
.hero { position: relative; display: grid; grid-template-areas: "visual content"; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100%; min-height: 0; }
.hero__content { z-index: 2; grid-area: content; align-self: center; width: min(100%, 635px); margin-inline-end: auto; transform: translateY(-5px); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; color: rgba(251, 244, 233, .94); font-size: .92rem; font-weight: 500; }
.eyebrow > span:first-child { width: 72px; height: 1px; background: linear-gradient(to left, var(--copper-light), transparent); }
.hero h1 { max-width: 630px; margin-top: 22px; color: #f8f5ef; font-size: clamp(2.5rem, 3.85vw, 4.15rem); font-weight: 600; letter-spacing: -.057em; line-height: 1.27; text-shadow: 0 4px 26px rgba(0, 0, 0, .24); }
.hero h1 em { color: #e4ab68; font-style: normal; }
.hero__intro { max-width: 590px; margin-top: 22px; color: rgba(249, 244, 235, .92); font-size: clamp(1rem, 1.2vw, 1.14rem); line-height: 2; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero__actions { display: flex; flex-wrap: nowrap; gap: 18px; margin-top: 24px; }
.hero-action-wrap { display: grid; gap: 8px; }
.hero-action-wrap small { color: rgba(246, 237, 225, .68); font-size: .75rem; text-align: center; }

.hero__visual-anchor { position: relative; z-index: 1; grid-area: visual; min-width: 0; pointer-events: none; }
.hero-lines { position: absolute; inset: -13% -11% -16% -25%; width: 132%; height: 127%; overflow: visible; filter: drop-shadow(0 0 5px rgba(222, 162, 79, .65)); pointer-events: none; }
.hero-lines path { fill: none; stroke: url(#hero-gold-line); stroke-width: 1.2; stroke-dasharray: 7 9 400; animation: line-flow 17s linear infinite; }
.hero-lines path:nth-child(3) { stroke-width: .82; animation-duration: 24s; animation-delay: -7s; opacity: .72; }
.hero-lines path:nth-child(4) { stroke-width: .9; animation-duration: 21s; animation-delay: -12s; opacity: .58; }
.visual-note { position: absolute; top: 15%; inset-inline-end: 4%; color: rgba(238, 180, 103, .9); font-size: clamp(1rem, 1.45vw, 1.35rem); font-weight: 400; line-height: 1.8; text-align: start; text-shadow: 0 2px 16px rgba(0, 0, 0, .54); }

.service-marquee { position: relative; z-index: 4; align-self: end; height: auto; min-height: 0; block-size: auto; min-block-size: 0; flex: none; overflow: hidden; border-block: 1px solid rgba(236, 185, 109, .58); background: linear-gradient(90deg, rgba(4, 13, 20, .78), rgba(10, 31, 40, .68) 50%, rgba(5, 15, 22, .78)); box-shadow: inset 0 1px 0 rgba(255, 239, 206, .11), inset 0 -1px 0 rgba(158, 101, 46, .2), 0 -8px 23px rgba(0, 0, 0, .18); backdrop-filter: blur(18px) saturate(1.12); }
.service-marquee::before, .service-marquee::after { position: absolute; z-index: 2; content: ""; inset-block: 0; width: min(10vw, 150px); pointer-events: none; }
.service-marquee::before { inset-inline-start: 0; background: linear-gradient(to right, rgba(4, 10, 15, .94), transparent); }
.service-marquee::after { inset-inline-end: 0; background: linear-gradient(to left, rgba(4, 10, 15, .94), transparent); }
.marquee__viewport { height: auto; min-height: 0; block-size: auto; min-block-size: 0; overflow: hidden; padding-block: 16px; direction: ltr; mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent); }
.marquee__track { display: flex; width: max-content; direction: ltr; will-change: transform; animation: marquee-flow 50s linear infinite; }
.marquee__group { display: flex; flex: none; align-items: center; gap: clamp(30px, 3.6vw, 66px); padding-inline: clamp(18px, 2vw, 36px); direction: rtl; }
.marquee__group li { display: inline-flex; align-items: center; gap: 13px; color: rgba(255, 250, 242, .96); font-size: clamp(.91rem, 1.12vw, 1.04rem); font-weight: 500; white-space: nowrap; text-shadow: 0 1px 12px rgba(0, 0, 0, .62); }
.marquee__group li::after { width: 5px; height: 5px; margin-inline-start: clamp(17px, 2vw, 33px); content: ""; border-radius: 50%; background: #e7b56f; box-shadow: 0 0 12px rgba(232, 178, 96, .8); }
.marquee__icon { width: 26px; height: 26px; fill: none; stroke: #e9b66e; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; filter: drop-shadow(0 0 5px rgba(233, 182, 110, .32)); }

:root:dir(ltr) body { font-family: var(--font-latin); }
:root:dir(ltr) .hero-photo { transform: scaleX(-1); }
:root:dir(ltr) .hero-lines { transform: scaleX(-1); }
:root:dir(ltr) .eyebrow > span:first-child { background: linear-gradient(to right, var(--copper-light), transparent); }
:root:dir(ltr) .marquee__track { animation-direction: reverse; }
:root:dir(ltr) .marquee__group { direction: ltr; }

@keyframes marquee-flow { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes line-flow { to { stroke-dashoffset: -400; } }
@keyframes gold-drift { 0%, 100% { opacity: .25; transform: translate3d(0, 0, 0) scale(.75); } 50% { opacity: .95; transform: translate3d(8px, -15px, 0) scale(1); } }

@media (max-width: 1080px) {
  .hero-header-spacer { block-size: calc(clamp(22px, 2vw, 29px) + clamp(22px, 2vw, 29px) + 39px); }
  .hero { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
  .hero__content { width: min(100%, 550px); }
  .hero h1 { font-size: clamp(2.35rem, 3.75vw, 3.55rem); }
  .hero-action-wrap { flex: 1 1 0; min-width: 0; }
  .hero__actions .button { width: 100%; min-width: 0; padding-inline: 16px; }
  .hero__intro { font-size: 1rem; line-height: 1.9; }
  .visual-note { inset-inline-end: 0; }
}

@media (max-height: 820px) and (min-width: 801px) {
  .confidence-field { min-height: 0; }
  .hero__content { transform: translateY(-8px); }
  .hero h1 { margin-top: 16px; }
  .hero__intro { margin-top: 15px; }
  .hero__actions { margin-top: 21px; }
  .marquee__viewport { padding-block: 16px; }
  .marquee__icon { width: 23px; height: 23px; }
  .visual-note { top: 12%; }
}

@media (max-width: 800px) {
  .hero-header-spacer { block-size: 73px; }
  .confidence-field { display: block; height: auto; min-height: 0; overflow: hidden; }
  .hero-photo { height: 100%; min-height: 900px; object-position: 82% center; }
  .hero-atmosphere { background: linear-gradient(to bottom, rgba(3, 11, 18, .1) 0%, rgba(3, 11, 18, .43) 35%, rgba(3, 11, 18, .89) 56%, rgba(3, 11, 18, .98) 100%); }
  .hero { display: block; min-height: 805px; padding-block: 265px 56px; }
  .hero__content { width: 100%; margin: 0; transform: none; }
  .hero h1 { max-width: 600px; font-size: clamp(2.3rem, 10vw, 3.5rem); line-height: 1.28; }
  .hero__intro { max-width: 610px; }
  .hero__visual-anchor { position: absolute; inset: 0; pointer-events: none; }
  .hero-lines { inset: 2% -18% auto -22%; height: 430px; }
  .visual-note { display: none; }
  .hero-particles i:nth-child(n + 5) { display: none; }
  .hero__actions { gap: 15px; }
  .hero-action-wrap { flex: 1 1 245px; }
  .marquee__viewport { padding-block: 12px; }
}

@media (max-width: 520px) {
  .hero-photo { min-height: 850px; object-position: 82% center; }
  .hero { min-height: 760px; padding-block: 240px 42px; }
  .hero h1 { font-size: clamp(2.15rem, 10.8vw, 3rem); }
  .hero__intro { font-size: .96rem; line-height: 1.9; }
  .hero__actions { display: grid; }
  .button { width: 100%; }
  .marquee__group { gap: 26px; padding-inline: 14px; }
  .marquee__group li { gap: 10px; font-size: .85rem; }
  .marquee__group li::after { margin-inline-start: 20px; }
  .marquee__icon { width: 22px; height: 22px; }
}

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