/* Keep reading copy distinct from the site's display typography. */
:root { --reading-copy: #d5dad3; --reading-muted: #b8c0b5; }
.shi-ui-icon {
  display: inline-block; width: 1em; height: 1em; max-width: none;
  flex: none; vertical-align: -.12em; color: inherit;
  fill: none; stroke: currentColor; stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round;
}
.menu-btn i .shi-ui-icon { width: .75em; height: .75em; }
.menu-btn[aria-expanded="true"] i { transform: rotate(90deg); }
.shi-carousel-controls button { display: inline-grid; place-items: center; }
.shi-carousel-controls button[hidden] { display: none; }
.shi-carousel-controls .shi-ui-icon { width: 18px; height: 18px; }
[dir="rtl"] .shi-carousel-controls .shi-direction-icon { transform: scaleX(-1); }

#story .shi-story-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; border: 1px solid #343b2e;
  background: #343b2e;
}
#story .shi-story-metrics .metric {
  min-width: 0; padding: clamp(.7rem, 2vw, 1.45rem);
  background: linear-gradient(155deg, #1c2118, #10140f 75%);
}
#story .shi-story-metrics .metric strong {
  display: inline-block; min-inline-size: 0;
  font-size: clamp(1.25rem, 3.7vw, 3.1rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em; white-space: nowrap;
}
#story .shi-story-metrics .metric > span {
  color: #cbd1c4; font-size: clamp(.6875rem, 1.15vw, .8rem);
  line-height: 1.35; letter-spacing: .045em;
}
#story .shi-story-metrics strong > span {
  color: inherit; margin: 0; font: inherit; letter-spacing: inherit;
}
.shi-story-metrics .shi-metric-animated { display: none; }
.shi-story-metrics.is-counting .shi-metric-final {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.shi-story-metrics.is-counting .shi-metric-animated { display: inline; }
#story .shi-story-metrics [data-pt], #story .shi-story-metrics [data-he] { display: none; }
body.language-pt #story .shi-story-metrics [data-pt],
body.language-he #story .shi-story-metrics [data-he] { display: block; }

.shi-service-image { position: relative; }
.shi-service-image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 140px 120px at var(--shi-light-x, 50%) var(--shi-light-y, 50%),
    #cbf14036, transparent 95%);
  opacity: 0; transition: opacity .3s ease;
}
.shi-service-card:focus-within { border-color: #a0b752; }
.shi-service-card:focus-within .shi-service-image::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .shi-service-image:hover::after { opacity: 1; }
}

.timeline > .timeline-step { z-index: 1; }
.shi-timeline-trail {
  position: absolute; z-index: 0; inline-size: 2px; pointer-events: none;
  background: var(--acid); box-shadow: 0 0 13px #cbf1407d;
  transform: translateX(-50%) scaleY(var(--shi-trail-progress, 0));
  transform-origin: top; transition: transform .4s ease;
}
@media (prefers-reduced-motion: reduce) {
  .shi-service-image::after, .shi-timeline-trail { transition: none; }
}

.inner-text, .inner-copy-layout > *, .nestor-detail-intro > *,
.nestor-gallery-grid > *, .nestor-video-grid > * { min-width: 0; }
.inner-text, .contact, .site-footer { overflow-wrap: anywhere; }
.inner-text p, .split-copy p, .timeline-copy p { line-height: 1.7; }
.inner-text p, .nestor-detail-intro p, .nestor-gallery-grid figcaption,
.nestor-video-grid figcaption, .nestor-exploded-info .nestor-concept-note {
  color: var(--reading-copy);
}
.inner-text p { max-width: 72ch; }
.nestor-gallery-grid figcaption, .nestor-video-grid figcaption { font-size: .9rem; line-height: 1.5; }
.nestor-component-list { grid-template-columns: 1fr; }
.nestor-component-list li { display: block; min-height: 0; padding: 0; }
.nestor-component-details summary {
  padding: .8rem .9rem; min-height: 48px; cursor: pointer;
  display: flex; align-items: center; gap: .65rem; list-style: none;
  font-size: .95rem; line-height: 1.4;
}
.nestor-component-details summary::-webkit-details-marker { display: none; }
.nestor-component-details summary::after { content: "+"; margin-inline-start: auto; color: var(--acid); }
.nestor-component-details[open] summary::after { content: "−"; }
.nestor-component-details[open] { background: #cbf1000c; }
.nestor-component-details p { margin: 0; padding: 0 .9rem .85rem; font-size: .95rem; line-height: 1.55; color: var(--reading-copy); }
.nestor-exploded-info .nestor-concept-note { font-size: .9rem; }
[data-nestor-lang] { display: none; }
[data-nestor-lang="en"] { display: inline; }
html:lang(pt) [data-nestor-lang="en"], html:lang(he) [data-nestor-lang="en"] { display: none; }
html:lang(pt) [data-nestor-lang="pt"], html:lang(he) [data-nestor-lang="he"] { display: inline; }

.nestor-home-hero, .nestor-detail-hero { isolation: isolate; }
.nestor-alternate-background {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  object-fit: cover; object-position: center; pointer-events: none;
  opacity: 0; transform: scale(1.04);
  transition: opacity .65s ease, transform 1s var(--ease, ease);
}
.nestor-home-hero .nestor-home-backdrop { z-index: -1; }
.nestor-detail-hero::before { z-index: -1; }
.nestor-home-hero::after, .nestor-detail-hero::after {
  z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #080a09f2 5%, #080a0999 55%, #080a092e),
              linear-gradient(0deg, #080a09c7, transparent 60%);
}
.nestor-home-copy, .nestor-detail-hero .inner-hero-content, .nestor-home-hero .nestor-scroll { z-index: 3; }
.nestor-background-ready .nestor-home-model::after { display: none; }
.nestor-background-ready .nestor-home-model { transition: opacity .55s ease; }
.nestor-background-on .nestor-alternate-background { opacity: 1; transform: scale(1.07); }
.nestor-background-on .nestor-home-model { opacity: .2; }
.nestor-detail-hero.nestor-background-on::after,
.nestor-home-hero.nestor-background-on::after {
  background: linear-gradient(90deg, #080a09d9 3%, #080a0966 57%, #080a0914),
              linear-gradient(0deg, #080a09b3, transparent 52%);
}
@media (hover: hover) and (pointer: fine) {
  .nestor-background-ready:hover .nestor-alternate-background {
    opacity: 1;
    transform: translate(var(--nestor-pan-x, 0px), var(--nestor-pan-y, 0px)) scale(1.09);
  }
  .nestor-background-ready:hover .nestor-home-model { opacity: .38; }
}

.shi-service-image:has(img[src*="-uniform.webp"]) {
  height: auto;
  aspect-ratio: 4 / 3;
}
.shi-service-image img[src*="-uniform.webp"],
.practice-item .practice-image[src*="-uniform.webp"] {
  filter: none;
  object-position: 50% 46%;
}
.practice-item .practice-image[src*="-uniform.webp"] {
  height: auto;
  aspect-ratio: 4 / 3;
}
@media (prefers-reduced-motion: reduce) {
  .nestor-alternate-background { transition: none; transform: none !important; }
}

@media (max-width: 760px) {
  .nestor-detail-hero.nestor-background-on::after, .nestor-home-hero.nestor-background-on::after {
    background: linear-gradient(180deg,#080a09f2 3%,#080a09ab 34%,#080a0914 76%,#080a09ad);
  }
  :root { --wrap: calc(100% - clamp(32px, 9vw, 56px)); }
  .site-header .header-inner { gap: 8px; }
  .site-header .brand-logo, .site-header .custom-logo-link img {
    width: clamp(84px, 26vw, 142px); object-fit: contain;
  }
  .site-header .language-switch button, .site-header .language-switch a {
    min-width: 36px; min-height: 44px; padding: 3px; font-size: 11px; letter-spacing: normal;
  }
  .site-header .menu-btn { min-width: 44px; min-height: 44px; }
  .site-header .mega-nav-link { min-height: 60px; }
  .site-header .mega-nav-link span { font-size: 16px; }
  .site-header .mega-nav-preview-btn { min-height: 44px; font-size: 11px; letter-spacing: .025em; }
  .site-header .mega-nav-visual { position: relative; height: auto; min-height: 145px; }
  .site-header .mega-nav-visual-content { position: relative; inset: auto; padding: 17px; }
  .site-header .mega-nav-visual-content p { font-size: 14px; }
  .site-header .mega-nav-bottom { font-size: 12px; }
  .nestor-home-hero {
    min-height: 0; display: grid; gap: 1.25rem; align-items: start;
    padding: 98px max(16px,5vw) 28px;
  }
  .nestor-home-hero .nestor-home-copy { width: 100%; max-width: 620px; }
  .nestor-home-copy h1 { font-size: clamp(54px, 15vw, 96px); line-height: .86; }
  .nestor-home-hero .nestor-home-model {
    position: relative; inset: auto; width: 100%; height: clamp(190px,64vw,390px);
    max-width: 600px; justify-self: center; opacity: 1;
  }
  .nestor-home-hero .nestor-orbit, .nestor-home-hero .nestor-scroll { display: none; }
  .nestor-home-hero .nestor-home-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .nestor-home-hero::after, .nestor-detail-hero::after {
    background: linear-gradient(180deg, #080a09eb 5%, #080a09c9 42%, #080a094d 72%, #080a09e0);
  }
  .nestor-home-hero .nestor-home-model > span { font-size: 12px; }
  .nestor-home-copy .nestor-disclaimer, .nestor-detail-hero .nestor-status {
    font-size: 12px; line-height: 1.5; color: var(--reading-muted);
  }
  .inner-hero { min-height: 0; }
  .inner-hero-content, .nestor-detail-hero .inner-hero-content { padding: 125px 0 42px; }
  .inner-hero-content h1, .section-head h2 { font-size: clamp(38px,10.5vw,68px); line-height: 1.06; overflow-wrap: anywhere; }
  .inner-hero-content p, .nestor-home-copy > p, .section-head p,
  .split-copy p, .inner-text p, .inner-cta p, .timeline-copy p, .contact p,
  .shi-service-card p, .practice-item p, .shi-capabilities-heading > p,
  .nestor-detail-intro p, .nestor-validation p { font-size: 1rem; line-height: 1.62; }
  .button, .text-link, .shi-service-link { font-size: .9rem; }
  .eyebrow, .kicker, .mono, .nestor-gallery-grid figcaption, .nestor-video-grid figcaption { letter-spacing: .06em; }
  .eyebrow, .kicker, .mono { font-size: .75rem; line-height: 1.45; }
  .site-footer p, .site-footer a, .footer-bottom { font-size: .875rem; line-height: 1.55; }
  .nestor-gallery-grid, .nestor-video-grid { grid-template-columns: minmax(0,1fr); }
  .nestor-gallery-grid .nestor-exploded-figure { grid-template-columns: minmax(0,1fr); }
  .nestor-exploded-visual { min-height: 0; }
  .nestor-video-grid video { max-width: 100%; height: auto; }
}
@media (max-width: 560px) {
  .site-header .header-actions .nestor-header-feature { display: none !important; }
  .nestor-home-hero .nestor-home-actions > * { flex: 1 1 100%; }
}

.inner-contact { scroll-margin-top: 110px; }
.shi-operational-indicators { margin-block: 1.75rem 2.5rem; }
.shi-operational-indicators ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.shi-skill { padding: 1rem; border: 1px solid #414a34; background: #151a12; }
.shi-skill-label { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.shi-skill-label strong { font-size: .95rem; color: #eee; }
.shi-skill-label > span { font: 1.05rem monospace; color: var(--acid); }
.shi-skill-track { margin-block-start: .7rem; height: .35rem; background: #303a23; }
.shi-skill-track > span {
  height: 100%; display: block; inline-size: var(--shi-skill-value);
  background: var(--acid); transform-origin: left;
}
[dir="rtl"] .shi-skill-track > span { transform-origin: right; }
.shi-operational-indicators .shi-skill-note { margin-block-start: 1rem; font-size: .87rem; }
.shi-investment {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center;
  gap: 1.5rem; padding: clamp(1.2rem, 4vw, 3rem); margin-block: 2.5rem 4rem;
  background: #141a11; border: 1px solid #60752e; border-inline-start: 4px solid var(--acid);
}
.shi-investment h2 { font-size: clamp(1.65rem,4vw,3rem); margin: .5rem 0; line-height: 1.1; }
.shi-investment p { line-height: 1.6; color: var(--reading-copy); max-width: 60ch; }
.shi-investment [data-pt], .shi-investment [data-he],
.shi-operational-indicators [data-pt], .shi-operational-indicators [data-he] { display: none; }
body.language-pt :is(.shi-investment,.shi-operational-indicators) [data-pt],
body.language-he :is(.shi-investment,.shi-operational-indicators) [data-he] { display: inline; }
@media (max-width: 760px) {
  .shi-investment { grid-template-columns: 1fr; }
  .shi-investment .button { justify-self: start; min-height: 44px; }
}
.nestor-mobile-gallery-track { display: contents; }
.nestor-mobile-gallery-controls { display: none; }
@media (max-width: 760px) {
  .nestor-home-hero.shi-mobile-scene .nestor-home-backdrop,
  .nestor-detail-hero.shi-mobile-scene::before,
  .nestor-detail-hero.shi-mobile-scene .nestor-alternate-background {
    translate: 0 var(--shi-scene-offset, 0px);
    scale: 1.09;
  }
  .nestor-home-hero.shi-mobile-scene .nestor-home-model img {
    translate: 0 calc(var(--shi-scene-offset, 0px) * -.28);
  }
  .inner-contact a[href^="mailto:"], .inner-contact a[href^="tel:"] {
    display: inline-flex; align-items: center; min-height: 44px;
    overflow-wrap: anywhere;
  }
  .nestor-mobile-gallery-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 87%;
    gap: .7rem; min-width: 0; max-width: 100%; overflow-x: auto;
    overscroll-behavior-inline: contain; scroll-snap-type: x mandatory;
    scrollbar-width: thin; scrollbar-color: #627044 #10140f;
    padding-block-end: .5rem;
  }
  .nestor-mobile-gallery-track figure,
  .nestor-mobile-gallery-track .nestor-gallery-feature {
    grid-column: auto; min-inline-size: 0; scroll-snap-align: start;
  }
  .nestor-mobile-gallery-track figure img,
  .nestor-mobile-gallery-track .nestor-gallery-feature img {
    display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  }
  .nestor-mobile-gallery-controls {
    display: grid; grid-template-columns: max-content minmax(1rem, 1fr) 44px 44px;
    align-items: center; gap: .6rem; margin-block-end: 1rem;
  }
  .nestor-mobile-gallery-count { font: .75rem monospace; color: var(--reading-copy); }
  .nestor-mobile-gallery-progress {
    position: relative; height: 2px; background: #39422f;
  }
  .nestor-mobile-gallery-progress::before {
    content: ""; position: absolute; inset: 0; background: var(--acid);
    transform: scaleX(var(--shi-photo-progress, 0)); transform-origin: left;
    transition: transform .3s ease;
  }
  [dir="rtl"] .nestor-mobile-gallery-progress::before { transform-origin: right; }
  .nestor-mobile-gallery-controls button {
    display: grid; place-items: center; width: 44px; min-height: 44px;
    color: var(--acid); background: #141910; border: 1px solid #617041;
  }
  .nestor-mobile-gallery-controls button:focus-visible {
    outline: 2px solid var(--acid); outline-offset: 2px;
  }
  .nestor-mobile-gallery-controls button[aria-disabled="true"] { opacity: .55; }
  [dir="rtl"] .nestor-mobile-gallery-controls .shi-direction-icon { transform: scaleX(-1); }
}
@media (prefers-reduced-motion: reduce) {
  .nestor-mobile-gallery-progress::before { transition: none; }
}
