/* DigiFULL — Tasy | Segmentos por scroll */
.dgf-tasy-segments {
    position: relative;
    padding: 104px 0 0;
    border-top: 1px solid var(--dgf-line);
    color: var(--dgf-body);
    background: var(--dgf-white);
}

.dgf-tasy-segments__intro {
    position: relative;
    z-index: 2;
}

.dgf-tasy-segments__intro .dgf-tasy-section-title {
    max-width: 760px;
    margin-bottom: 0;
}

.dgf-tasy-segments__story {
    position: relative;
    margin-top: 50px;
}

.dgf-tasy-segments__stage {
    position: relative;
    width: 100%;
    border-top: 1px solid var(--dgf-line);
    background:
        linear-gradient(90deg, rgba(16,33,63,.025) 1px, transparent 1px),
        linear-gradient(180deg, rgba(16,33,63,.025) 1px, transparent 1px),
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    background-size: 46px 46px, 46px 46px, auto;
}

.dgf-tasy-segments__stage-inner {
    position: relative;
}

.dgf-tasy-segments__layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: clamp(36px, 5vw, 74px);
    align-items: center;
    min-height: 760px;
    padding: 70px 0 76px;
}

.dgf-tasy-segments__nav {
    position: relative;
    z-index: 3;
}

.dgf-tasy-segments__nav-track {
    display: grid;
    gap: 6px;
}

.dgf-tasy-segments__nav-link {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: var(--dgf-radius-control);
    color: var(--dgf-muted) !important;
    background: transparent;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    transition: color .22s ease, border-color .22s ease, background-color .22s ease, transform .22s ease;
}

.dgf-tasy-segments__nav-link:hover {
    color: var(--dgf-ink) !important;
    background: rgba(255,255,255,.72);
}

.dgf-tasy-segments__nav-link:focus-visible {
    outline: 3px solid rgba(245,130,31,.22);
    outline-offset: 2px;
}

.dgf-tasy-segments__nav-link.is-active {
    border-color: rgba(16,33,63,.16);
    color: #fff !important;
    background: var(--dgf-ink);
    box-shadow: 0 16px 30px -24px rgba(6,19,39,.72);
    transform: translateX(4px);
}

.dgf-tasy-segments__nav-index {
    color: var(--dgf-muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: .08em;
    transition: color .22s ease;
}

.dgf-tasy-segments__nav-link.is-active .dgf-tasy-segments__nav-index {
    color: var(--dgf-orange-soft);
}

.dgf-tasy-segments__progress {
    height: 2px;
    margin: 22px 12px 0;
    overflow: hidden;
    background: rgba(16,33,63,.10);
}

.dgf-tasy-segments__progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--dgf-orange);
    transform: scaleX(.2);
    transform-origin: left center;
}

.dgf-tasy-segments__panels {
    position: relative;
    min-width: 0;
}

.dgf-tasy-segments__panel {
    display: grid;
    grid-template-columns: minmax(320px, .92fr) minmax(380px, 1.08fr);
    gap: clamp(38px, 5vw, 72px);
    align-items: center;
    min-width: 0;
    scroll-margin-top: 110px;
}

.dgf-tasy-segments__panel + .dgf-tasy-segments__panel {
    margin-top: 80px;
    padding-top: 80px;
    border-top: 1px solid var(--dgf-line);
}

.dgf-tasy-segments__visual {
    position: relative;
    min-height: 540px;
    margin: 0;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--dgf-radius-panel);
    color: var(--dgf-dark-text);
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        var(--dgf-dark-950);
    background-size: 34px 34px, 34px 34px, auto;
    box-shadow: 0 30px 68px -46px rgba(6,19,39,.82);
}

.dgf-tasy-segments__visual::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: var(--dgf-orange);
    transform: scaleX(.34);
    transform-origin: left center;
}

.dgf-tasy-segments__visual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,.11);
}

.dgf-tasy-segments__visual-header span {
    color: var(--dgf-dark-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dgf-tasy-segments__visual-header strong {
    color: var(--dgf-orange-soft);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .02em;
}

.dgf-tasy-segments__visual--isometric {
    display: flex;
    flex-direction: column;
}

.dgf-tasy-segments__scene {
    position: relative;
    height: 230px;
    margin: 5px -10px -2px;
    isolation: isolate;
}

.dgf-tasy-segments__scene::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 18% 14% 6%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125,168,255,.13), transparent 69%);
}

.dgf-tasy-segments__scene svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.dgf-tasy-segments__scene-ground {
    fill: rgba(125,168,255,.055);
    stroke: rgba(125,168,255,.14);
    stroke-width: 1;
}

.dgf-tasy-segments__scene-ring {
    fill: none;
    stroke: rgba(255,255,255,.08);
    stroke-dasharray: 3 8;
    animation: dgf-tasy-scene-route 8s linear infinite reverse;
    animation-play-state: paused;
}

.dgf-tasy-segments__scene-routes path {
    fill: none;
    stroke: var(--dgf-orange);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 8 12;
    opacity: .62;
    animation: dgf-tasy-scene-route 4.8s linear infinite;
    animation-play-state: paused;
}

.dgf-tasy-segments__scene-shadow {
    fill: rgba(0,0,0,.23);
}

.dgf-tasy-segments__scene-building {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: dgf-tasy-scene-breathe 6s ease-in-out infinite;
    animation-play-state: paused;
}

.dgf-tasy-segments__scene-roof {
    fill: #E8EDF5;
    stroke: rgba(255,255,255,.35);
    stroke-width: 1;
}

.dgf-tasy-segments__scene-front {
    fill: #A8B6CA;
}

.dgf-tasy-segments__scene-side {
    fill: #71839E;
}

.dgf-tasy-segments__scene-entry {
    fill: #20385D;
    stroke: rgba(125,168,255,.42);
    stroke-width: 1;
}

.dgf-tasy-segments__scene-window {
    fill: #7DA8FF;
    opacity: .66;
    animation: dgf-tasy-scene-window 3.8s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.dgf-tasy-segments__scene-wing .dgf-tasy-segments__scene-window {
    animation-delay: -1.4s;
}

.dgf-tasy-segments__scene-cross {
    fill: var(--dgf-orange);
    transform-box: fill-box;
    transform-origin: center;
    animation: dgf-tasy-scene-cross 2.6s ease-in-out infinite;
    animation-play-state: paused;
}

.dgf-tasy-segments__scene-ambulance {
    transform-box: fill-box;
    transform-origin: center;
    animation: dgf-tasy-scene-vehicle 5.4s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.dgf-tasy-segments__scene-vehicle-top {
    fill: #F6F8FC;
}

.dgf-tasy-segments__scene-vehicle-front {
    fill: #A8B6CA;
}

.dgf-tasy-segments__scene-vehicle-side {
    fill: #71839E;
}

.dgf-tasy-segments__scene-vehicle-cross {
    fill: var(--dgf-orange);
}

.dgf-tasy-segments__scene-nodes circle {
    fill: var(--dgf-orange);
    stroke: rgba(255,183,121,.38);
    stroke-width: 8;
    transform-box: fill-box;
    transform-origin: center;
    animation: dgf-tasy-scene-node 2.8s ease-in-out infinite;
    animation-play-state: paused;
}

.dgf-tasy-segments__scene-nodes circle:nth-child(2) {
    animation-delay: -.9s;
}

.dgf-tasy-segments__scene-nodes circle:nth-child(3) {
    animation-delay: -1.8s;
}

.dgf-tasy-segments__visual--isometric .dgf-tasy-segments__flow--compact {
    grid-template-columns: repeat(var(--dgf-flow-columns, 4), minmax(0, 1fr));
    gap: 5px;
    margin: 0 0 20px !important;
}

.dgf-tasy-segments__visual--isometric .dgf-tasy-segments__flow--compact::before {
    top: 17px;
    right: 17px;
    bottom: auto;
    left: 17px;
    width: auto;
    height: 1px;
}

.dgf-tasy-segments__visual--isometric .dgf-tasy-segments__flow--compact li {
    grid-template-columns: 1fr;
    gap: 7px;
    align-content: start;
    justify-items: center;
    min-height: 0;
    text-align: center;
}

.dgf-tasy-segments__visual--isometric .dgf-tasy-segments__flow--compact li::after {
    display: none;
}

.dgf-tasy-segments__visual--isometric .dgf-tasy-segments__flow--compact .dgf-tasy-segments__flow-index {
    width: 35px;
    height: 35px;
    font-size: 8px;
}

.dgf-tasy-segments__visual--isometric .dgf-tasy-segments__flow--compact strong {
    max-width: 76px;
    color: rgba(246,248,252,.78);
    font-size: 9px;
    line-height: 1.25;
}

@keyframes dgf-tasy-scene-route {
    to { stroke-dashoffset: -40; }
}

@keyframes dgf-tasy-scene-breathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes dgf-tasy-scene-window {
    0%, 28% { opacity: .38; }
    72%, 100% { opacity: .82; }
}

@keyframes dgf-tasy-scene-cross {
    0%, 100% { transform: scale(.94); opacity: .78; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes dgf-tasy-scene-vehicle {
    from { transform: translate(-5px, 3px); }
    to { transform: translate(7px, -4px); }
}

@keyframes dgf-tasy-scene-node {
    0%, 100% { transform: scale(.78); opacity: .58; }
    50% { transform: scale(1); opacity: 1; }
}

/* Sistema visual compartilhado pelas cinco operações isométricas. */
.dgf-tasy-segments__scene-ground-shadow {
    fill: rgba(0,0,0,.20);
}

.dgf-tasy-segments__scene-ground-edge-left {
    fill: #071A37;
}

.dgf-tasy-segments__scene-ground-edge-right {
    fill: #0D2349;
}

.dgf-tasy-segments__scene-platform {
    fill: rgba(125,168,255,.075);
    stroke: rgba(125,168,255,.20);
    stroke-width: 1;
}

.dgf-tasy-segments__scene-structure {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: dgf-tasy-scene-breathe 6.8s ease-in-out infinite;
}

.dgf-tasy-segments__scene-screen-frame {
    fill: #20385D;
    stroke: rgba(125,168,255,.34);
    stroke-width: 1;
}

.dgf-tasy-segments__scene-screen {
    fill: #07152D;
    stroke: rgba(125,168,255,.28);
    stroke-width: 1;
}

.dgf-tasy-segments__scene-wave,
.dgf-tasy-segments__scene-data-line,
.dgf-tasy-segments__scene-check {
    fill: none;
    stroke: var(--dgf-orange);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dgf-tasy-segments__scene-stand {
    fill: #71839E;
}

/* Radiologia. */
.dgf-tasy-segments__scene-machine-back {
    fill: #314765;
    stroke: rgba(125,168,255,.24);
    stroke-width: 1;
}

.dgf-tasy-segments__scene-machine-shell {
    fill: #E8EDF5;
    stroke: rgba(255,255,255,.46);
    stroke-width: 1;
}

.dgf-tasy-segments__scene-machine-core {
    fill: #07152D;
    stroke: rgba(125,168,255,.30);
    stroke-width: 2;
}

.dgf-tasy-segments__scene-scan-ring {
    fill: none;
    stroke: var(--dgf-orange);
    stroke-width: 3;
    stroke-dasharray: 11 16;
    opacity: .84;
    animation: dgf-tasy-scene-route 3.4s linear infinite;
}

.dgf-tasy-segments__scene-scan-point {
    fill: var(--dgf-orange);
    stroke: rgba(255,183,121,.36);
    stroke-width: 10;
    transform-box: fill-box;
    transform-origin: center;
    animation: dgf-tasy-scene-node 2.1s ease-in-out infinite;
}

.dgf-tasy-segments__scene-table {
    transform-box: fill-box;
    transform-origin: right center;
    animation: dgf-tasy-scene-table 5.2s ease-in-out infinite alternate;
}

.dgf-tasy-segments__scene-cushion {
    fill: #7DA8FF;
    opacity: .70;
}

.dgf-tasy-segments__scene-monitor {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: dgf-tasy-scene-dashboard 4.7s ease-in-out infinite alternate;
}

/* Laboratório. */
.dgf-tasy-segments__scene-slot {
    fill: #20385D;
    stroke: rgba(125,168,255,.34);
    stroke-width: 1;
}

.dgf-tasy-segments__scene-conveyor-line {
    fill: rgba(125,168,255,.10);
    stroke: var(--dgf-orange);
    stroke-width: 1.5;
    stroke-dasharray: 8 10;
    animation: dgf-tasy-scene-route 4.2s linear infinite;
}

.dgf-tasy-segments__scene-samples {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: dgf-tasy-scene-samples 3.8s ease-in-out infinite alternate;
}

.dgf-tasy-segments__scene-tube-glass {
    fill: rgba(246,248,252,.20);
    stroke: rgba(246,248,252,.68);
    stroke-width: 2;
}

.dgf-tasy-segments__scene-tube-liquid {
    fill: var(--dgf-orange);
    opacity: .82;
}

.dgf-tasy-segments__scene-arm {
    transform-box: fill-box;
    transform-origin: 72% 12%;
    animation: dgf-tasy-scene-arm 4.6s ease-in-out infinite alternate;
}

.dgf-tasy-segments__scene-arm path {
    fill: none;
    stroke: #B9C6D8;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dgf-tasy-segments__scene-arm circle {
    fill: #20385D;
    stroke: #7DA8FF;
    stroke-width: 4;
}

/* Oncologia. */
.dgf-tasy-segments__scene-protocol path {
    fill: none;
    stroke: rgba(125,168,255,.48);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 9 13;
    animation: dgf-tasy-scene-route 7s linear infinite;
}

.dgf-tasy-segments__scene-protocol path:last-child {
    stroke: rgba(245,130,31,.60);
    animation-direction: reverse;
}

.dgf-tasy-segments__scene-chair-back {
    fill: #A8B6CA;
}

.dgf-tasy-segments__scene-chair-side {
    fill: #71839E;
}

.dgf-tasy-segments__scene-chair-seat {
    fill: #E8EDF5;
}

.dgf-tasy-segments__scene-chair-front {
    fill: #91A1B8;
}

.dgf-tasy-segments__scene-chair-arm {
    fill: #7DA8FF;
    opacity: .74;
}

.dgf-tasy-segments__scene-iv {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: dgf-tasy-scene-dashboard 4.1s ease-in-out infinite alternate;
}

.dgf-tasy-segments__scene-iv-stand,
.dgf-tasy-segments__scene-iv-line {
    fill: none;
    stroke: #B9C6D8;
    stroke-width: 4;
    stroke-linecap: round;
}

.dgf-tasy-segments__scene-iv-line {
    stroke-width: 2;
}

.dgf-tasy-segments__scene-iv-bag {
    fill: rgba(125,168,255,.30);
    stroke: #8CB2FF;
    stroke-width: 2;
}

.dgf-tasy-segments__scene-drips circle {
    fill: var(--dgf-orange);
    animation: dgf-tasy-scene-drip 2.2s linear infinite;
}

.dgf-tasy-segments__scene-drips circle:nth-child(2) {
    animation-delay: -.7s;
}

.dgf-tasy-segments__scene-drips circle:nth-child(3) {
    animation-delay: -1.4s;
}

.dgf-tasy-segments__scene-care-monitor {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: dgf-tasy-scene-dashboard 4.9s ease-in-out infinite alternate-reverse;
}

/* Operadoras. */
.dgf-tasy-segments__scene-network path {
    fill: none;
    stroke: rgba(125,168,255,.48);
    stroke-width: 2;
    stroke-dasharray: 7 11;
    animation: dgf-tasy-scene-route 4.6s linear infinite;
}

.dgf-tasy-segments__scene-network circle {
    fill: var(--dgf-orange);
    stroke: rgba(255,183,121,.35);
    stroke-width: 8;
    transform-box: fill-box;
    transform-origin: center;
    animation: dgf-tasy-scene-node 2.7s ease-in-out infinite;
}

.dgf-tasy-segments__scene-hub-top {
    fill: #E8EDF5;
    stroke: rgba(255,255,255,.45);
    stroke-width: 1;
}

.dgf-tasy-segments__scene-hub-body {
    fill: #71839E;
}

.dgf-tasy-segments__scene-hub-line {
    fill: none;
    stroke: rgba(125,168,255,.52);
    stroke-width: 2;
}

.dgf-tasy-segments__scene-data-bars rect {
    fill: var(--dgf-orange);
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: dgf-tasy-scene-data 2.9s ease-in-out infinite alternate;
}

.dgf-tasy-segments__scene-data-bars rect:nth-child(2) {
    animation-delay: -.7s;
}

.dgf-tasy-segments__scene-data-bars rect:nth-child(3) {
    animation-delay: -1.4s;
}

.dgf-tasy-segments__scene-data-bars rect:nth-child(4) {
    animation-delay: -2.1s;
}

.dgf-tasy-segments__scene-dashboard {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: dgf-tasy-scene-dashboard 4.8s ease-in-out infinite alternate;
}

.dgf-tasy-segments__scene-dashboard--right {
    animation-direction: alternate-reverse;
}

.dgf-tasy-segments__scene-check {
    stroke: #77E4A6;
    stroke-width: 5;
}

@keyframes dgf-tasy-scene-table {
    from { transform: translateX(-3px); }
    to { transform: translateX(7px); }
}

@keyframes dgf-tasy-scene-samples {
    from { transform: translateY(3px); }
    to { transform: translateY(-5px); }
}

@keyframes dgf-tasy-scene-arm {
    from { transform: rotate(-2deg); }
    to { transform: rotate(4deg); }
}

@keyframes dgf-tasy-scene-drip {
    0% { transform: translateY(-5px); opacity: 0; }
    24%, 72% { opacity: 1; }
    100% { transform: translateY(9px); opacity: 0; }
}

@keyframes dgf-tasy-scene-data {
    from { transform: scaleY(.42); opacity: .58; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes dgf-tasy-scene-dashboard {
    from { transform: translateY(2px); }
    to { transform: translateY(-5px); }
}

/* A cena ativa anima por padrão; o JS apenas pausa quando ela sai da viewport. */
.dgf-tasy-segments__scene * {
    animation-play-state: paused;
}

.dgf-tasy-segments__panel.is-active .dgf-tasy-segments__scene * {
    animation-play-state: running;
}

.dgf-tasy-segments.has-scene-visibility:not(.is-in-view) .dgf-tasy-segments__scene * {
    animation-play-state: paused;
}

.dgf-tasy-segments__flow {
    position: relative;
    display: grid;
    gap: 0;
    margin: 30px 0 28px !important;
    padding: 0;
    list-style: none;
}

.dgf-tasy-segments__flow[data-flow-count="4"] {
    --dgf-flow-columns: 4;
}

.dgf-tasy-segments__flow[data-flow-count="5"] {
    --dgf-flow-columns: 5;
}

.dgf-tasy-segments__flow::before {
    content: '';
    position: absolute;
    top: 21px;
    bottom: 21px;
    left: 20px;
    width: 1px;
    background: rgba(255,255,255,.16);
}

.dgf-tasy-segments__flow li {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 68px;
    color: var(--dgf-dark-text);
}

.dgf-tasy-segments__flow li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 58px;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,.075);
}

.dgf-tasy-segments__flow-index {
    position: relative;
    z-index: 1;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    color: var(--dgf-orange-soft);
    background: var(--dgf-dark-900);
    font-size: 10px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    letter-spacing: .06em;
}

.dgf-tasy-segments__flow strong {
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 750;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.dgf-tasy-segments__visual figcaption {
    position: relative;
    margin-top: auto;
    padding: 16px 17px 16px 21px;
    border-left: 2px solid var(--dgf-orange);
    color: rgba(246,248,252,.72);
    background: rgba(255,255,255,.045);
    font-size: 12.5px;
    line-height: 1.55;
}

.dgf-tasy-segments__copy {
    min-width: 0;
}

.dgf-tasy-segments__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--dgf-orange);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dgf-tasy-segments__eyebrow > span {
    color: var(--dgf-muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.dgf-tasy-segments__copy h3 {
    max-width: 560px;
    margin: 0 0 20px;
    color: var(--dgf-heading);
    font-size: clamp(31px, 3.5vw, 46px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.04;
    text-wrap: balance;
}

.dgf-tasy-segments__summary {
    max-width: 590px;
    margin-bottom: 28px;
    color: var(--dgf-body);
    font-size: 16px;
    line-height: 1.7;
    text-wrap: pretty;
}

.dgf-tasy-segments__highlights {
    display: grid;
    gap: 0;
    max-width: 590px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

.dgf-tasy-segments__highlights li {
    position: relative;
    padding: 13px 0 13px 27px;
    border-top: 1px solid var(--dgf-line);
    color: var(--dgf-ink);
    font-size: 14px;
    font-weight: 720;
    line-height: 1.45;
}

.dgf-tasy-segments__highlights li::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 2px;
    width: 11px;
    height: 2px;
    background: var(--dgf-orange);
}

/* Com GSAP, o desktop mantém uma única composição ativa durante o scroll. */
.dgf-tasy-segments.is-desktop-enhanced .dgf-tasy-segments__story {
    min-height: 410svh;
}

.dgf-tasy-segments.is-desktop-enhanced .dgf-tasy-segments__stage {
    position: sticky;
    top: var(--dgf-tasy-sticky-offset, 0px);
    height: calc(100svh - var(--dgf-tasy-sticky-offset, 0px));
    min-height: min(680px, calc(100svh - var(--dgf-tasy-sticky-offset, 0px)));
    overflow: hidden;
}

.dgf-tasy-segments.is-desktop-enhanced .dgf-tasy-segments__stage-inner,
.dgf-tasy-segments.is-desktop-enhanced .dgf-tasy-segments__layout {
    height: 100%;
}

.dgf-tasy-segments.is-desktop-enhanced .dgf-tasy-segments__layout {
    min-height: 0;
    padding: 42px 0;
}

.dgf-tasy-segments.is-desktop-enhanced .dgf-tasy-segments__panels {
    min-height: min(650px, calc(100svh - var(--dgf-tasy-sticky-offset, 0px) - 84px));
}

.dgf-tasy-segments.is-desktop-enhanced .dgf-tasy-segments__panel {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    visibility: hidden;
}

.dgf-tasy-segments.is-desktop-enhanced .dgf-tasy-segments__panel.is-active {
    pointer-events: auto;
}

.dgf-tasy-segments__panel[hidden] {
    display: none !important;
}

@media (max-width: 1080px) {
    .dgf-tasy-segments__layout {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 34px;
    }

    .dgf-tasy-segments__panel {
        grid-template-columns: minmax(290px, .9fr) minmax(340px, 1.1fr);
        gap: 34px;
    }

    .dgf-tasy-segments__visual {
        min-height: 500px;
        padding: 25px;
    }

    .dgf-tasy-segments__flow li {
        min-height: 61px;
    }

    .dgf-tasy-segments__copy h3 {
        font-size: clamp(29px, 3.5vw, 40px);
    }
}

@media (max-width: 899px) {
    .dgf-tasy-segments {
        padding-top: 84px;
    }

    .dgf-tasy-segments__story {
        margin-top: 42px;
    }

    .dgf-tasy-segments__stage {
        background-size: 38px 38px, 38px 38px, auto;
    }

    .dgf-tasy-segments__layout {
        display: block;
        min-height: 0;
        padding: 0 0 84px;
    }

    .dgf-tasy-segments__nav {
        position: sticky;
        top: var(--dgf-tasy-sticky-offset, 0px);
        z-index: 8;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding: 11px max(16px, calc((100vw - var(--dgf-container)) / 2));
        border-bottom: 1px solid rgba(16,33,63,.09);
        background: rgba(248,250,252,.94);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .dgf-tasy-segments__nav-track {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .dgf-tasy-segments__nav-track::-webkit-scrollbar {
        display: none;
    }

    .dgf-tasy-segments__nav-link {
        flex: 0 0 auto;
        grid-template-columns: auto auto;
        min-height: 42px;
        padding: 8px 12px;
        scroll-snap-align: center;
        font-size: 12px;
    }

    .dgf-tasy-segments__nav-link.is-active {
        transform: none;
    }

    .dgf-tasy-segments__nav-index {
        font-size: 9px;
    }

    .dgf-tasy-segments__progress {
        width: 100%;
        margin: 9px 0 0;
    }

    .dgf-tasy-segments__panels {
        display: grid;
        gap: 0;
        padding-top: 38px;
    }

    .dgf-tasy-segments__panel,
    .dgf-tasy-segments.is-mobile-enhanced .dgf-tasy-segments__panel {
        display: grid;
        grid-template-columns: 1fr;
        gap: 31px;
        min-height: 0;
        scroll-margin-top: calc(var(--dgf-tasy-sticky-offset, 0px) + 92px);
    }

    .dgf-tasy-segments__panel + .dgf-tasy-segments__panel {
        margin-top: 72px;
        padding-top: 72px;
        border-top: 1px solid var(--dgf-line);
    }

    .dgf-tasy-segments__visual {
        min-height: 0;
        padding: 24px;
    }

    .dgf-tasy-segments__flow {
        grid-template-columns: repeat(var(--dgf-flow-columns, 5), minmax(0, 1fr));
        gap: 8px;
        margin: 24px 0 !important;
    }

    .dgf-tasy-segments__flow::before {
        top: 20px;
        right: 20px;
        bottom: auto;
        left: 20px;
        width: auto;
        height: 1px;
    }

    .dgf-tasy-segments__flow li {
        grid-template-columns: 1fr;
        gap: 9px;
        align-content: start;
        justify-items: center;
        min-height: 0;
        text-align: center;
    }

    .dgf-tasy-segments__flow li:not(:last-child)::after {
        display: none;
    }

    .dgf-tasy-segments__flow-index {
        width: 40px;
        height: 40px;
    }

    .dgf-tasy-segments__flow strong {
        font-size: 11px;
        line-height: 1.3;
    }

    .dgf-tasy-segments__visual figcaption {
        font-size: 12px;
    }

    .dgf-tasy-segments__copy {
        max-width: 680px;
    }

    .dgf-tasy-segments__copy h3 {
        max-width: 620px;
        font-size: clamp(29px, 6vw, 40px);
    }

    .dgf-tasy-segments__summary {
        max-width: 650px;
    }
}

@media (max-width: 560px) {
    .dgf-tasy-segments {
        padding-top: 74px;
    }

    .dgf-tasy-segments__story {
        margin-top: 34px;
    }

    .dgf-tasy-segments__layout {
        padding-bottom: 74px;
    }

    .dgf-tasy-segments__panels {
        padding-top: 28px;
    }

    .dgf-tasy-segments__panel,
    .dgf-tasy-segments.is-mobile-enhanced .dgf-tasy-segments__panel {
        gap: 27px;
        scroll-margin-top: calc(var(--dgf-tasy-sticky-offset, 0px) + 88px);
    }

    .dgf-tasy-segments__panel + .dgf-tasy-segments__panel {
        margin-top: 62px;
        padding-top: 62px;
    }

    .dgf-tasy-segments__visual {
        padding: 20px 17px 22px;
        border-radius: 20px;
    }

    .dgf-tasy-segments__scene {
        height: 195px;
        margin: 4px -8px -1px;
    }

    .dgf-tasy-segments__visual--isometric .dgf-tasy-segments__flow--compact {
        margin-bottom: 17px !important;
    }

    .dgf-tasy-segments__visual--isometric .dgf-tasy-segments__flow--compact strong {
        font-size: 8px;
    }

    .dgf-tasy-segments__visual-header {
        padding-bottom: 17px;
    }

    .dgf-tasy-segments__flow {
        gap: 3px;
        margin: 20px -4px 22px !important;
    }

    .dgf-tasy-segments__flow::before {
        right: 16px;
        left: 16px;
    }

    .dgf-tasy-segments__flow-index {
        width: 34px;
        height: 34px;
        font-size: 8px;
    }

    .dgf-tasy-segments__flow strong {
        font-size: 9px;
        letter-spacing: -.015em;
    }

    .dgf-tasy-segments__visual figcaption {
        padding: 13px 13px 13px 16px;
        font-size: 11px;
    }

    .dgf-tasy-segments__eyebrow {
        margin-bottom: 16px;
        font-size: 10px;
    }

    .dgf-tasy-segments__copy h3 {
        margin-bottom: 16px;
        font-size: clamp(27px, 8vw, 34px);
        line-height: 1.06;
    }

    .dgf-tasy-segments__summary {
        margin-bottom: 23px;
        font-size: 14.5px;
        line-height: 1.62;
    }

    .dgf-tasy-segments__highlights li {
        padding: 12px 0 12px 24px;
        font-size: 13px;
    }

    .dgf-tasy-segments__highlights li::before {
        top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dgf-tasy-segments__nav-link {
        transition: none;
    }

    .dgf-tasy-segments__nav-track {
        scroll-behavior: auto;
    }

    .dgf-tasy-segments__scene * {
        animation: none !important;
    }
}
